summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorSami Kerola2015-06-24 10:15:09 +0200
committerKarel Zak2015-07-30 11:39:12 +0200
commitb59c5925cea2094325f256828e97dc5c20364b9f (patch)
tree64deaaebbf536aa0ec5bccbc453c566d4cb0ae9f /bash-completion
parentmkfs.minix: increase maximum minix v2 and v3 file system sizes (diff)
downloadkernel-qcow2-util-linux-b59c5925cea2094325f256828e97dc5c20364b9f.tar.gz
kernel-qcow2-util-linux-b59c5925cea2094325f256828e97dc5c20364b9f.tar.xz
kernel-qcow2-util-linux-b59c5925cea2094325f256828e97dc5c20364b9f.zip
mkfs.minix: introduce long options to the command
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/mkfs.minix16
1 files changed, 7 insertions, 9 deletions
diff --git a/bash-completion/mkfs.minix b/bash-completion/mkfs.minix
index 3a3602e6e..e725fd6df 100644
--- a/bash-completion/mkfs.minix
+++ b/bash-completion/mkfs.minix
@@ -5,25 +5,23 @@ _mkfs.minix_module()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
- '-i')
+ '-i'|'--inodes')
COMPREPLY=( $(compgen -W "inodes" -- $cur) )
return 0
;;
- '-l')
- COMPREPLY=( $(compgen -W "badblocks-file" -- $cur) )
+ '-l'|'--badblocks')
+ compopt -o filenames
+ COMPREPLY=( $(compgen -f -- $cur) )
return 0
;;
- '-n')
- COMPREPLY=( $(compgen -W "14 30" -- $cur) )
- return 0
- ;;
- '-V'|'--version')
+ '-n'|'--namelength')
+ COMPREPLY=( $(compgen -W "14 30 60" -- $cur) )
return 0
;;
esac
case $cur in
-*)
- OPTS="-c -i -l -n -1 -2 -3"
+ OPTS="--namelength --inodes --check --badblocks --help --version -1 -2 -3"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;