]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: analyze: add missing options and verbs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 09:21:35 +0000 (18:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 14:18:49 +0000 (23:18 +0900)
shell-completion/bash/systemd-analyze

index 45ff7a1f3ec11a1ae9ecf3a58442565d716ebed0..34d274bb4f68da80ec385e09fa695476de3ae9b2 100644 (file)
@@ -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