diff options
author | Oliver Kiddle <opk@zsh.org> | 2017-03-14 16:13:05 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2017-03-14 16:13:05 +0100 |
commit | 45d910356ad6b75d47e56ed5cef2f43bffc12fca (patch) | |
tree | d9ad7ef4e55a28c4bb0024cb0100f567944b52f4 /Completion/Unix/Command/_date | |
parent | e869952200852a414debc6475a652e04e3b03641 (diff) | |
download | zsh-45d910356ad6b75d47e56ed5cef2f43bffc12fca.tar.gz zsh-45d910356ad6b75d47e56ed5cef2f43bffc12fca.tar.xz zsh-45d910356ad6b75d47e56ed5cef2f43bffc12fca.zip |
40842: update completions for coreutils and similar utilities, also improving BSD and Solaris support
Diffstat (limited to 'Completion/Unix/Command/_date')
-rw-r--r-- | Completion/Unix/Command/_date | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date index 731f6963b..a3e933710 100644 --- a/Completion/Unix/Command/_date +++ b/Completion/Unix/Command/_date @@ -8,14 +8,15 @@ opts=( -s -w -C ) if _pick_variant gnu="Free Software Foundation" unix --version; then local d='(-d --date -f --file -r --reference -s --set)' - local f='(-I --iso-8601 -R --rfc-2822 --rfc-3339)' + local f='(-I --iso-8601 -R --rfc-email --rfc-3339)' args=( $d{-d+,--date=}'[output date specified by string]:time string' + '--debug[annotate parsed date and warn about questionable usage]' $d{-f+,--file=}'[output dates specified in file]:file:_files' $d{-r+,--reference=}'[output last modification time of specified file]:file:_files' $d{-s+,--set=}'[set time]:time string' $f{-I-,--iso-8601=-}'[display in ISO 8601 format]::precision:(date hours minutes seconds ns)' - $f{-R,--rfc-2822}'[display in RFC2822 format]' + $f{-R,--rfc-email}'[display in RFC5322 format]' $f'--rfc-3339=-[display in RFC 3339 format]:precision:(date seconds ns)' '(-u --utc --universal)'{-u,--utc,--universal}'[display or set time in UTC]' '(- :)--help[output help and exit]' |