summary refs log tree commit diff
path: root/Completion/Pbmplus/_pnmscale
blob: 3b56071b0b22bf619428263709f22e3b4b3e7d8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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'