From: Yu Watanabe Date: Thu, 13 Dec 2018 17:32:15 +0000 (+0900) Subject: bash-completion: systemctl: use --output=help to show suggestions X-Git-Tag: v240~64^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e68a49dc872db55708f49ec4976fc38b32a75ef;p=thirdparty%2Fsystemd.git bash-completion: systemctl: use --output=help to show suggestions --- diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 8756bfb8a56..0e58e2ba4cb 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -168,8 +168,7 @@ _systemctl () { comps='full enable-only disable-only' ;; --output|-o) - comps='short short-full short-iso short-iso-precise short-precise short-monotonic short-unix verbose export json - json-pretty json-sse json-seq cat with-unit' + comps=$( systemctl --output=help 2>/dev/null ) ;; --machine|-M) comps=$( __get_machines )