bash-completion: hostnamectl: add a missing option
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 07:01:58 +0000 (16:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 14:15:45 +0000 (23:15 +0900)
shell-completion/bash/hostnamectl

index a35ac7f..1b41603 100644 (file)
@@ -29,7 +29,7 @@ _hostnamectl() {
         local i verb comps
         local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
         local OPTS='-h --help --version --transient --static --pretty
-                    --no-ask-password -H --host --machine'
+                    --no-ask-password -H --host -M --machine'
 
         if [[ $cur = -* ]]; then
                 COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )