mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
If we have an incorrect flag, say what it was.
This commit is contained in:
parent
c122aa6d19
commit
9097de9fbc
1 changed files with 4 additions and 0 deletions
|
@ -853,6 +853,10 @@ main(int argc, char **argv, char **env)
|
||||||
{
|
{
|
||||||
NSArray *args = [argsRecognized allKeys];
|
NSArray *args = [argsRecognized allKeys];
|
||||||
|
|
||||||
|
if (![@"help" isEqual: opt])
|
||||||
|
{
|
||||||
|
GSPrintf(stderr, @"Unknown option:\ '%@'\n", opt);
|
||||||
|
}
|
||||||
GSPrintf(stderr, @"Usage:\n");
|
GSPrintf(stderr, @"Usage:\n");
|
||||||
GSPrintf(stderr, [NSString stringWithFormat:
|
GSPrintf(stderr, [NSString stringWithFormat:
|
||||||
@" %@ [options] [files]\n", [argsGiven objectAtIndex: 0]]);
|
@" %@ [options] [files]\n", [argsGiven objectAtIndex: 0]]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue