Consider BSD distributions

This commit is contained in:
Shohei YOSHIDA 2024-11-17 23:25:48 +09:00
parent 2c2d87889a
commit fdc290d417
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 20 additions and 0 deletions

View File

@ -39,6 +39,26 @@ case $OSTYPE in
_arguments \ _arguments \
'-hdr[emit result in form suitable for copying into a header]' '-hdr[emit result in form suitable for copying into a header]'
;; ;;
(freebsd*)
_arguments \
'-1[instructs uuidgen to not generate them in batch, but one at a time]' \
'-r[create random UUID version 4]' \
'-c[create compact UUID without hyphen]' \
'-n[number of identifiers generated]:num' \
'-o[redirect output to filename instead of stdout]:file:_files'
;;
(netbsd*)
_arguments \
'-1[instructs uuidgen to not generate them in batch, but one at a time]' \
'-n[number of identifiers generated]:num' \
'-s[output UUIDs as initialized C structures]'
;;
(dragonfly*)
_arguments \
'-1[instructs uuidgen to not generate them in batch, but one at a time]' \
'-n[number of identifiers generated]:num' \
'-o[redirect output to filename instead of stdout]:file:_files'
;;
(*) (*)
_arguments \ _arguments \
'(- *)'{-h,--help}'[display this help]' \ '(- *)'{-h,--help}'[display this help]' \