From 46247b94c06d6e07e5a09b50d43f45c7411dc89f Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 3 Aug 2022 01:07:19 +0000 Subject: Fix -version git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4384 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmcat | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'editor') 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 -- cgit 1.4.1