diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-09-24 20:19:38 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-09-24 20:19:38 +0000 |
commit | 30afec0b7050d438e664f123b4faa97f9f7e6e20 (patch) | |
tree | 892d7a858c633b6b2dbef580acb5f0891acd5f7d /editor | |
parent | f95b41755a0e27e4b51f5951d888b7bdabf1cb2f (diff) | |
download | netpbm-mirror-30afec0b7050d438e664f123b4faa97f9f7e6e20.tar.gz netpbm-mirror-30afec0b7050d438e664f123b4faa97f9f7e6e20.tar.xz netpbm-mirror-30afec0b7050d438e664f123b4faa97f9f7e6e20.zip |
Release 10.99.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4437 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rwxr-xr-x | editor/pnmmargin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/pnmmargin b/editor/pnmmargin index e8851bda..a62e5e44 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 |