diff options
author | dana <dana@dana.is> | 2020-03-13 09:34:52 -0500 |
---|---|---|
committer | dana <dana@dana.is> | 2020-03-13 09:38:25 -0500 |
commit | cb7aadfd2a8b46b7eff4b615867183ecbdf08ac4 (patch) | |
tree | c373f93d0c45e78655828516798e6d0710be0704 | |
parent | c2e46ee43b519999ac2b48fc66f2e446a7e8f3a4 (diff) | |
download | zsh-cb7aadfd2a8b46b7eff4b615867183ecbdf08ac4.tar.gz zsh-cb7aadfd2a8b46b7eff4b615867183ecbdf08ac4.tar.xz zsh-cb7aadfd2a8b46b7eff4b615867183ecbdf08ac4.zip |
45535: _lz4: Order compression levels numerically
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_lz4 | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 39afdc7e3..2c96d98b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-03-13 dana <dana@dana.is> + * 45535: Completion/Unix/Command/_lz4: Order compression levels + numerically + * 45534: Completion/Darwin/Command/_hdiutil: Update image-file extensions, image/disk formats, &c. diff --git a/Completion/Unix/Command/_lz4 b/Completion/Unix/Command/_lz4 index 2697c4d11..6676943c4 100644 --- a/Completion/Unix/Command/_lz4 +++ b/Completion/Unix/Command/_lz4 @@ -42,8 +42,8 @@ args=( '(b t -k --keep)--rm[remove source file]' '!(b t -c --stdout)--to-stdout' + b # Benchmark-mode options - "(C c d t)-b-[benchmark file using specified compression level]::compression level:(${(j< >)levels//-/})" - "(C c d t)-e-[specify upper compression level limit (with -b)]:compression level:(${(j< >)levels//-/})" + "(C c d t)-b-[benchmark file using specified compression level]:: :->levels" + "(C c d t)-e-[specify upper compression level limit (with -b)]: :->levels" '(C c d t)-i-[specify minimum evaluation time (with -b)]:evaluation time (seconds)' + c # Compress-mode options "(b d t ${(j< >)levels} -c0 -c1 -c2 -hc)"${^levels} @@ -98,6 +98,11 @@ case $state in _message 'no more arguments' && ret=0 fi ;; + levels) + _wanted levels expl 'compression level' \ + compadd -o numeric - ${levels/#-/} \ + && ret=0 + ;; esac return ret |