From b59c5925cea2094325f256828e97dc5c20364b9f Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 24 Jun 2015 09:15:09 +0100 Subject: mkfs.minix: introduce long options to the command Signed-off-by: Sami Kerola --- bash-completion/mkfs.minix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'bash-completion') 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 ;; -- cgit v1.2.3-55-g7522