]>
Commit | Line | Data |
---|---|---|
061e4125 SK |
1 | _ipcmk_module() |
2 | { | |
3 | local cur prev | |
4 | COMPREPLY=() | |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
6 | prev="${COMP_WORDS[COMP_CWORD-1]}" | |
7 | case $prev in | |
8 | '-M'|'--shmem') | |
9 | COMPREPLY=( $(compgen -W "size" -- $cur) ) | |
10 | return 0 | |
11 | ;; | |
12 | '-S'|'--semaphore') | |
13 | COMPREPLY=( $(compgen -W "number" -- $cur) ) | |
14 | return 0 | |
15 | ;; | |
16 | '-p'|'--mode') | |
17 | COMPREPLY=( $(compgen -W "mode" -- $cur) ) | |
18 | return 0 | |
19 | ;; | |
20 | '-h'|'--help'|'-V'|'--version') | |
21 | return 0 | |
22 | ;; | |
23 | esac | |
24 | COMPREPLY=( $(compgen -W "--shmem --semaphore --queue --mode --help --version" -- $cur) ) | |
25 | return 0 | |
26 | } | |
27 | complete -F _ipcmk_module ipcmk |