]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/wall
bash-completion: Don't offer any more completions after help or version.
[thirdparty/util-linux.git] / bash-completion / wall
CommitLineData
8884f6d5
SK
1_wall_module()
2{
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-t'|'--timeout')
9 COMPREPLY=( $(compgen -W "seconds" -- $cur) )
10 return 0
11 ;;
d4f9b8d7
VS
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
8884f6d5
SK
15 esac
16 case $cur in
17 -*)
18 OPTS="-n --nobanner -t --timeout -V --version -h --help"
19 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
20 return 0
21 ;;
22 esac
23 compopt -o filenames
24 COMPREPLY=( $(compgen -f -- $cur) )
25 return 0
26}
27complete -F _wall_module wall