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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124130
@ -502,6 +502,7 @@ Usage(const char *msg)
|
|||||||
{
|
{
|
||||||
if (msg)
|
if (msg)
|
||||||
warnx("%s", 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