]>
Commit | Line | Data |
---|---|---|
8884f6d5 SK |
1 | _mesg_module() |
2 | { | |
d4f9b8d7 | 3 | local cur prev OPTS |
8884f6d5 SK |
4 | COMPREPLY=() |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
d4f9b8d7 VS |
6 | prev="${COMP_WORDS[COMP_CWORD-1]}" |
7 | case $prev in | |
8 | '-h'|'--help'|'-V'|'--version') | |
9 | return 0 | |
10 | ;; | |
11 | esac | |
8884f6d5 SK |
12 | case $cur in |
13 | -*) | |
0d5b9b8a | 14 | OPTS="--verbose --version --help" |
8884f6d5 SK |
15 | COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) |
16 | return 0 | |
17 | ;; | |
18 | esac | |
19 | COMPREPLY=( $(compgen -W "y n" -- $cur) ) | |
20 | return 0 | |
21 | } | |
22 | complete -F _mesg_module mesg |