aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-14 02:32:15 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-14 02:33:21 +0900
commit2e68a49dc872db55708f49ec4976fc38b32a75ef (patch)
tree98441dd06501077c50cd5e00e31fb6a5ef638766 /shell-completion
parentbash-completion: journalctl: use --output=help to show suggestions (diff)
downloadsystemd-2e68a49dc872db55708f49ec4976fc38b32a75ef.tar.gz
systemd-2e68a49dc872db55708f49ec4976fc38b32a75ef.tar.bz2
systemd-2e68a49dc872db55708f49ec4976fc38b32a75ef.zip
bash-completion: systemctl: use --output=help to show suggestions
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemctl.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index 8756bfb8a..0e58e2ba4 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 )