summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorKarel Zak2017-02-24 12:05:13 +0100
committerKarel Zak2017-02-24 12:05:13 +0100
commit830043212f4fccb66fde9066a2f5e2c5a5a6f501 (patch)
tree0d528196652df6552878b98672925f9f3e7d6102 /bash-completion
parentblkzone: use optutils.h to check mutually exclusive options (diff)
downloadkernel-qcow2-util-linux-830043212f4fccb66fde9066a2f5e2c5a5a6f501.tar.gz
kernel-qcow2-util-linux-830043212f4fccb66fde9066a2f5e2c5a5a6f501.tar.xz
kernel-qcow2-util-linux-830043212f4fccb66fde9066a2f5e2c5a5a6f501.zip
blkzone: add count option to bash-completion
and fix typo in man page Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion')
-rwxr-xr-xbash-completion/blkzone6
1 files changed, 5 insertions, 1 deletions
diff --git a/bash-completion/blkzone b/bash-completion/blkzone
index d161cd0b8..a50684df9 100755
--- a/bash-completion/blkzone
+++ b/bash-completion/blkzone
@@ -13,6 +13,10 @@ _blkzone_module()
COMPREPLY=( $(compgen -W "size" -- $cur) )
return 0
;;
+ '-c'|'--count')
+ COMPREPLY=( $(compgen -W "number" -- $cur) )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@@ -21,7 +25,7 @@ _blkzone_module()
-*)
case $prev in
'report'|'reset')
- OPTS="--verbose --offset --length"
+ OPTS="--verbose --offset --length --count"
;;
*)
OPTS="--help --version"