diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2013-04-07 11:12:04 +0300 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-04-08 17:06:52 +0200 |
commit | d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57 (patch) | |
tree | 4457e6b5111b2fbea8c1591b44fecc56037f49cc /bash-completion/rename | |
parent | 2885c533fd11cb91ddd5dae17ed93b4de363496b (diff) | |
download | util-linux-d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57.tar.gz |
bash-completion: Don't offer any more completions after help or version.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'bash-completion/rename')
-rw-r--r-- | bash-completion/rename | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bash-completion/rename b/bash-completion/rename index 0fe4cc64..b42d2d18 100644 --- a/bash-completion/rename +++ b/bash-completion/rename @@ -3,6 +3,12 @@ _rename_module() local cur prev OPTS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + case $prev in + '-h'|'--help'|'-V'|'--version') + return 0 + ;; + esac case $cur in -*) OPTS="-v --verbose -s --symlink -h --help -V --version" |