diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 02:32:15 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 02:33:21 +0900 |
commit | 2e68a49dc872db55708f49ec4976fc38b32a75ef (patch) | |
tree | 98441dd06501077c50cd5e00e31fb6a5ef638766 /shell-completion | |
parent | fdc33681ae1207bfaae842161a9346c1e4af7413 (diff) | |
download | systemd-2e68a49dc872db55708f49ec4976fc38b32a75ef.tar.gz |
bash-completion: systemctl: use --output=help to show suggestions
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/systemctl.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 8756bfb8a5..0e58e2ba4c 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 ) |