]>
Commit | Line | Data |
---|---|---|
c72fca2c SK |
1 | _col_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 | '-l'|'--lines') | |
9 | COMPREPLY=( $(compgen -W "number" -- $cur) ) | |
10 | return 0 | |
11 | ;; | |
d4f9b8d7 VS |
12 | '-H'|'--help'|'-V'|'--version') |
13 | return 0 | |
14 | ;; | |
c72fca2c | 15 | esac |
0d5b9b8a VS |
16 | OPTS="--no-backspaces |
17 | --fine | |
18 | --pass | |
19 | --tabs | |
20 | --spaces | |
21 | --lines | |
22 | --version | |
23 | --help" | |
c72fca2c SK |
24 | COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) |
25 | return 0 | |
26 | } | |
27 | complete -F _col_module col |