Print a usage message if a non-option is specified.
MFC after: 3 weeks
This commit is contained in:
parent
6ad5a15cc6
commit
d3c6fd4749
@ -99,7 +99,8 @@ main(int argc, char *argv[])
|
|||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += optind;
|
if (argc != 0)
|
||||||
|
usage();
|
||||||
|
|
||||||
if (memf == NULL) {
|
if (memf == NULL) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user