diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 18:21:35 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 23:18:49 +0900 |
commit | 7c3940f6ce08b61d944e0802709f3767d833a234 (patch) | |
tree | 9b71af65e15d437d5f0265416b0e1942cd3ab99c /shell-completion | |
parent | 035dd8c0a345eb8e07c3b4bf6b61633f242641aa (diff) |
bash-completion: analyze: add missing options and verbs
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/systemd-analyze | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 45ff7a1f3e..34d274bb4f 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -36,12 +36,13 @@ _systemd_analyze() { local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local -A OPTS=( - [STANDALONE]='--help --version --system --user --order --require --no-pager --man' - [ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern ' + [STANDALONE]='-h --help --version --system --user --order --require --no-pager + --man=no --generators=yes' + [ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern' ) local -A VERBS=( - [STANDALONE]='time blame plot dump get-log-level get-log-target' + [STANDALONE]='time blame plot dump get-log-level get-log-target calendar' [CRITICAL_CHAIN]='critical-chain' [DOT]='dot' [LOG_LEVEL]='set-log-level' @@ -117,7 +118,7 @@ _systemd_analyze() { elif __contains_word "$verb" ${VERBS[VERIFY]}; then if [[ $cur = -* ]]; then - comps='--help --version --system --user --man' + comps='--help --version --system --user --man=no --generators=yes' else comps=$( compgen -A file -- "$cur" ) compopt -o filenames |