5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "longopts" -- $cur) )
13 COMPREPLY=( $(compgen -W "name" -- $cur) )
17 COMPREPLY=( $(compgen -W "optstring" -- $cur) )
21 COMPREPLY=( $(compgen -W "sh bash csh tcsh" -- $cur) )
24 '-h'|'--help'|'-V'|'--version')
30 OPTS="--alternative --help --longoptions --name --options --quiet --quiet-output --shell --test --unquoted --version"
31 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
37 complete -F _getopt_module getopt