diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 02:31:04 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 02:33:21 +0900 |
commit | fdc33681ae1207bfaae842161a9346c1e4af7413 (patch) | |
tree | 3ff6eb6290f29529d849ed0a5816ca0450331ba6 /shell-completion | |
parent | bash-completion: journalctl: drop deprecated --new-id128 option (diff) | |
download | systemd-fdc33681ae1207bfaae842161a9346c1e4af7413.tar.gz systemd-fdc33681ae1207bfaae842161a9346c1e4af7413.tar.bz2 systemd-fdc33681ae1207bfaae842161a9346c1e4af7413.zip |
bash-completion: journalctl: use --output=help to show suggestions
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/journalctl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index f96228f64..bcd4533a6 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -66,7 +66,7 @@ _journalctl() { compopt -o filenames ;; --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=$( journalctl --output=help 2>/dev/null ) ;; --field|-F) comps=$(journalctl --fields | sort 2>/dev/null) |