]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: update systemd-analyze bash-completion 1181/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 7 Sep 2015 01:44:30 +0000 (04:44 +0300)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 7 Sep 2015 01:51:21 +0000 (04:51 +0300)
* Change --no-man to --man (see dad29df)
* --{from,to}-pattern require arg

shell-completion/bash/systemd-analyze

index 00947029c677593229d4440a1b64f2355f64cbde..7a5f46ba1d63354e5d44e845f2182e059946939f 100644 (file)
@@ -35,8 +35,8 @@ _systemd_analyze() {
         local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
 
         local -A OPTS=(
-               [STANDALONE]='--help --version --system --user --from-pattern --to-pattern --order --require --no-pager'
-                      [ARG]='-H --host -M --machine --fuzz --man'
+               [STANDALONE]='--help --version --system --user --order --require --no-pager --man'
+                      [ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern '
         )
 
         local -A VERBS=(
@@ -102,7 +102,7 @@ _systemd_analyze() {
 
         elif __contains_word "$verb" ${VERBS[VERIFY]}; then
                 if [[ $cur = -* ]]; then
-                        comps='--help --version --system --user --no-man'
+                        comps='--help --version --system --user --man'
                 else
                         comps=$( compgen -A file -- "$cur" )
                         compopt -o filenames