summaryrefslogtreecommitdiff
path: root/bash-completion/setarch
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/setarch')
-rw-r--r--bash-completion/setarch8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/setarch b/bash-completion/setarch
index b84d399b..6224a11c 100644
--- a/bash-completion/setarch
+++ b/bash-completion/setarch
@@ -1,8 +1,14 @@
_setarch_module()
{
- local cur OPTS
+ 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
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -W "linux32 linux64 ppc32 ppc ppc64
ppc64pseries ppc64iseries i386