diff options
Diffstat (limited to 'editor/pnmmargin')
-rwxr-xr-x | editor/pnmmargin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/pnmmargin b/editor/pnmmargin index 1b5370be..6e70aba3 100755 --- a/editor/pnmmargin +++ b/editor/pnmmargin @@ -67,6 +67,13 @@ fi size="$1" shift +case $size in + ''|*[!0-9]*) + echo "Size argument '$size' is not a whole number" + exit 1 + ;; +esac + if [ ${2-""} ] ; then echo "usage: $0 [-white|-black|-color <colorspec>] <size> [pnmfile]" 1>&2 exit 1 |