]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/mcookie
logger: make socket initialization in main() more readable
[thirdparty/util-linux.git] / bash-completion / mcookie
CommitLineData
76dceb10
SK
1_mcookie_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 '-f'|'--file')
9 compopt -o filenames
10 COMPREPLY=( $(compgen -f -- $cur) )
11 return 0
12 ;;
13 esac
14 case $cur in
15 -*)
16 OPTS="-f --file -v --verbose -V --version -h --help"
17 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
18 return 0
19 ;;
20 esac
21 return 0
22}
23complete -F _mcookie_module mcookie