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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124130

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