Skip to content

Commit

Permalink
reorder and add missing autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 20, 2020
1 parent 5adb42c commit 8fdc4a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions completion/_catimg
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ local context state state_descr line ret=1
typeset -A val_args

_arguments \
'-c[convert colors to a restricted palette]' \
'-h[display a help message]' \
'-w[specify the width of the displayed image]' \
'-H[specify the height of the displayed image]' \
'-l[specify the amount of loops that catimg should repeat a GIF]' \
'-r[force the resolution of the image]: :->resolution' \
'-c[convert colors to a restricted palette]' \
'-t[disable true color and use 256 color instead]' \
'-w[specify the width of the displayed image]' \
'*: :_files' && ret=0

[[ "$state" == 'resolution' ]] && _values 'resolution value' 1 2 && ret=0
Expand Down

0 comments on commit 8fdc4a6

Please sign in to comment.