17 lines
307 B
Text
17 lines
307 B
Text
|
_mesg_module()
|
||
|
{
|
||
|
local cur OPTS
|
||
|
COMPREPLY=()
|
||
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||
|
case $cur in
|
||
|
-*)
|
||
|
OPTS="-v --verbose -V --version -h --help"
|
||
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
||
|
return 0
|
||
|
;;
|
||
|
esac
|
||
|
COMPREPLY=( $(compgen -W "y n" -- $cur) )
|
||
|
return 0
|
||
|
}
|
||
|
complete -F _mesg_module mesg
|