diff options
author | charnier <charnier@FreeBSD.org> | 2004-01-04 16:11:29 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2004-01-04 16:11:29 +0000 |
commit | 3d7bd9d590a2c5464b625ea488e6243fe88c28bb (patch) | |
tree | 3cb06030742f34d86121b2e5cf62680c63e2501e | |
parent | 7f939437796b9bac98eb901e4c0c6ee46bb02814 (diff) | |
download | FreeBSD-src-3d7bd9d590a2c5464b625ea488e6243fe88c28bb.zip FreeBSD-src-3d7bd9d590a2c5464b625ea488e6243fe88c28bb.tar.gz |
Use fprintf() instead of errx() when displaying usage string. The program name
will not be written twice.
-rw-r--r-- | usr.sbin/ngctl/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c index 06010cf..0867193 100644 --- a/usr.sbin/ngctl/main.c +++ b/usr.sbin/ngctl/main.c @@ -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); } - |