about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-03 01:07:19 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-03 01:07:19 +0000
commit46247b94c06d6e07e5a09b50d43f45c7411dc89f (patch)
tree4f9d082752338f9a4b8d674316e293cd95c19015
parentdb592a5379550479901fda96fa87490c5ff65eeb (diff)
downloadnetpbm-mirror-46247b94c06d6e07e5a09b50d43f45c7411dc89f.tar.gz
netpbm-mirror-46247b94c06d6e07e5a09b50d43f45c7411dc89f.tar.xz
netpbm-mirror-46247b94c06d6e07e5a09b50d43f45c7411dc89f.zip
Fix -version
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4384 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rwxr-xr-xeditor/pnmcat8
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/pnmcat b/editor/pnmcat
index f82c2527..52f55be7 100755
--- a/editor/pnmcat
+++ b/editor/pnmcat
@@ -1,3 +1,9 @@
 #! /bin/sh
 
-pamcat -extendplane "$@" | pnmtopnm
+if test "$1" = '-version'; then
+  pamcat -version
+elif test "$1" = '--version'; then
+  pamcat --version
+else
+  pamcat -extendplane "$@" | pnmtopnm
+fi