Consider macOS's uuidgen
This commit is contained in:
parent
8f3baa3b1e
commit
2c2d87889a
10
src/_uuidgen
10
src/_uuidgen
|
@ -34,7 +34,13 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
case $OSTYPE in
|
||||||
|
(darwin*)
|
||||||
|
_arguments \
|
||||||
|
'-hdr[emit result in form suitable for copying into a header]'
|
||||||
|
;;
|
||||||
|
(*)
|
||||||
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display this help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-r --random)'{-r,--random}'[generate random-based uuid]' \
|
'(-r --random)'{-r,--random}'[generate random-based uuid]' \
|
||||||
|
@ -45,6 +51,8 @@ _arguments \
|
||||||
'(-C --count -s --sha1 -m --md5)'{-C,--count}'[generate more uuids in loop]:count' \
|
'(-C --count -s --sha1 -m --md5)'{-C,--count}'[generate more uuids in loop]:count' \
|
||||||
'(-C --count -s --sha1 -m --md5)'{-s,--sha1}'[generate sha1 hash]' \
|
'(-C --count -s --sha1 -m --md5)'{-s,--sha1}'[generate sha1 hash]' \
|
||||||
'(-x --hex)'{-h,--hex}'[interpret name as hex string]'
|
'(-x --hex)'{-h,--hex}'[interpret name as hex string]'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: Shell-Script
|
# mode: Shell-Script
|
||||||
|
|
Loading…
Reference in New Issue