summaryrefslogtreecommitdiff
path: root/bash-completion/chrt
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/chrt')
-rw-r--r--bash-completion/chrt8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/chrt b/bash-completion/chrt
index b85775a4..b2e52163 100644
--- a/bash-completion/chrt
+++ b/bash-completion/chrt
@@ -1,8 +1,14 @@
_chrt_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
# FIXME: -p is ambiguous, it takes either pid or priority as an
# argument depending on whether user wanted to get or set the
# values. Perhaps the command interface should be reconsidered.