5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 local prefix realcur OUTPUT
11 prefix="${cur%$realcur}"
12 for WORD in "UUID VARIANT TYPE TIME"; do
13 if ! [[ $prefix == *"$WORD"* ]]; then
14 OUTPUT="$WORD ${OUTPUT:-""}"
18 COMPREPLY=( $(compgen -P "$prefix" -W "$OUTPUT" -S ',' -- $realcur) )
21 '-h'|'--help'|'-V'|'--version')
33 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
37 complete -F _uuidparse_module uuidparse