From 24fc4c22a6f8748ea9b573229389cc81a5385802 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 16 Feb 2007 03:47:18 +0000 Subject: Embellish wrong number of arguments error message git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@224 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pamcut.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor/pamcut.c') diff --git a/editor/pamcut.c b/editor/pamcut.c index d5de45fb..c6fc0cc1 100644 --- a/editor/pamcut.c +++ b/editor/pamcut.c @@ -94,8 +94,10 @@ parseCommandLine(int argc, char ** const argv, pm_error("-height may not be negative."); if ((argc-1) != 0 && (argc-1) != 1 && (argc-1) != 4 && (argc-1) != 5) - pm_error("Wrong number of arguments. " - "Must be 0, 1, 4, or 5 arguments."); + pm_error("Wrong number of arguments: %u. The only argument in " + "the preferred syntax is an optional input file name. " + "In older syntax, there are also forms with 4 and 5 " + "arguments.", argc-1); switch (argc-1) { case 0: -- cgit 1.4.1