mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 05:00:59 +01:00
16 lines
355 B
Text
16 lines
355 B
Text
#compdef pnmscale
|
|
|
|
local scale
|
|
|
|
if [[ "$words[2]" = -* ]]; then
|
|
scale=()
|
|
else
|
|
scale=( ':scale factor:' )
|
|
fi
|
|
|
|
_arguments '-xsize:width:' '-width:width:' \
|
|
'-ysize:height:' '-height:height:' \
|
|
'-xscale:horizontal scale factor:' \
|
|
'-yscale:horizontal scale factor:' \
|
|
'-xysize:width::height:' "$scale[@]" \
|
|
':file: _pbm_file'
|