From d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sun, 7 Apr 2013 11:12:04 +0300 Subject: bash-completion: Don't offer any more completions after help or version. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ville Skyttä --- bash-completion/rename | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bash-completion/rename') 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" -- cgit v1.2.3