util-linux/bash-completion/uuidgen

16 lines
282 B
Plaintext
Raw Normal View History

_uuidgen_module()
{
local cur OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
case $cur in
-*)
OPTS="-r --random -t --time -V --version -h --help"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
esac
return 0
}
complete -F _uuidgen_module uuidgen