If we have an incorrect flag, say what it was.

This commit is contained in:
rfm 2024-10-21 22:12:24 +01:00
parent c122aa6d19
commit 9097de9fbc

View file

@ -853,6 +853,10 @@ main(int argc, char **argv, char **env)
{
NSArray *args = [argsRecognized allKeys];
if (![@"help" isEqual: opt])
{
GSPrintf(stderr, @"Unknown option:\ '%@'\n", opt);
}
GSPrintf(stderr, @"Usage:\n");
GSPrintf(stderr, [NSString stringWithFormat:
@" %@ [options] [files]\n", [argsGiven objectAtIndex: 0]]);