| 1 |
# This is a bash completion rule |
| 2 |
|
| 3 |
_ddtc() |
| 4 |
{ |
| 5 |
COMPREPLY=() |
| 6 |
cur=${COMP_WORDS[COMP_CWORD]} # current word |
| 7 |
|
| 8 |
if [[ "$cur" == -* ]]; |
| 9 |
then |
| 10 |
COMPREPLY=( $( compgen -W '-q -v -s -n -l -V -h --quiet --verbose --mail-self --nomail-self --lang --version --help' -- $cur ) ) |
| 11 |
else |
| 12 |
COMPREPLY=( $( compgen -W 'parse mail fix clean stats section sget get review getbug btsclose notification status listtranslatedpackages noneveraguide neveraguide noguide guide' -- $cur ) ) |
| 13 |
fi |
| 14 |
|
| 15 |
return 0 |
| 16 |
} |
| 17 |
complete -F _ddtc ddtc |