5 local hasInstalledModOpt hasRecursiveOpt hasVerboseOpt hasNoOldFileOpt
7 cur="${COMP_WORDS[COMP_CWORD]}"
8 for opt in "${COMP_WORDS[@]}"
14 '-m'|'--installed-mods')
31 if [ $hasRecursiveOpt ] || [ $hasInstalledModOpt ]
33 if [ $hasVerboseOpt ] && [ $hasNoOldFileOpt ]
36 elif [ $hasNoOldFileOpt ]
39 elif [ $hasVerboseOpt ]
41 OPTS_ALL="--no-old-file"
47 if [ $hasVerboseOpt ] && [ $hasNoOldFileOpt ]
49 OPTS_ALL="--installed-mods
51 elif [ $hasNoOldFileOpt ]
57 elif [ $hasVerboseOpt ]
71 COMPREPLY=( $(compgen -W "${OPTS_ALL[*]}" -- $cur) )
75 COMPREPLY=( $(compgen -f -- $cur) )
78 complete -F _i18n_completions i18n.py