]>
Commit | Line | Data |
---|---|---|
c72fca2c SK |
1 | _colrm_module() |
2 | { | |
3 | local cur OPTS | |
4 | COMPREPLY=() | |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
6 | case $cur in | |
7 | -*) | |
8 | OPTS="-V --version -h --help" | |
9 | COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) | |
10 | return 0 | |
11 | ;; | |
12 | esac | |
13 | case $COMP_CWORD in | |
14 | 1) | |
15 | COMPREPLY=( $(compgen -W "startcol" -- $cur) ) | |
16 | ;; | |
17 | 2) | |
18 | COMPREPLY=( $(compgen -W "endcol" -- $cur) ) | |
19 | ;; | |
20 | esac | |
21 | return 0 | |
22 | } | |
23 | complete -F _colrm_module colrm |