mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue