diff options
Diffstat (limited to 'editor/pamscale.c')
-rw-r--r-- | editor/pamscale.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/editor/pamscale.c b/editor/pamscale.c index 23fe2707..a113f328 100644 --- a/editor/pamscale.c +++ b/editor/pamscale.c @@ -590,8 +590,15 @@ parseScaleParms(int const argc, else { if (argc-1 < 2) cmdlineP->inputFileName = "-"; - else + else { cmdlineP->inputFileName = argv[2]; + + if (argc-1 > 2) + pm_error("Too many arguments. There are at most two " + "arguments with this set of options: " + "scale factor and input file name. " + "You specified %u", argc-1); + } } } } |