Use fprintf() instead of errx() when displaying usage string. The program name
will not be written twice.
This commit is contained in:
parent
ce6ce58ca1
commit
b00304d4a1
@ -502,6 +502,7 @@ Usage(const char *msg)
|
||||
{
|
||||
if (msg)
|
||||
warnx("%s", msg);
|
||||
errx(EX_USAGE, "usage: ngctl [-d] [-f file] [-n name] [command ...]");
|
||||
fprintf(stderr,
|
||||
"usage: ngctl [-d] [-f file] [-n name] [command ...]\n");
|
||||
exit(EX_USAGE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user