Use fprintf() instead of errx() when displaying usage string. The program name

will not be written twice.
This commit is contained in:
Philippe Charnier 2004-01-04 16:11:29 +00:00
parent ce6ce58ca1
commit b00304d4a1

View File

@ -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);
}