diff options
author | dd <dd@FreeBSD.org> | 2001-11-15 15:46:45 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-11-15 15:46:45 +0000 |
commit | bbce60529dae7dadfc96fff97867c3aa5724c083 (patch) | |
tree | f65461320ecad3d909e1ac67f33919b01685f418 /bin/kenv | |
parent | c5e0ef53986c30b6d8be74f0137da4e3c72e9f5b (diff) | |
download | FreeBSD-src-bbce60529dae7dadfc96fff97867c3aa5724c083.zip FreeBSD-src-bbce60529dae7dadfc96fff97867c3aa5724c083.tar.gz |
Deuglify the usage message by putting the program name after the
"usage:" string. This is how most (all?) other programs in the system
do it.
PR: 31596
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
Diffstat (limited to 'bin/kenv')
-rw-r--r-- | bin/kenv/kenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/kenv/kenv.c b/bin/kenv/kenv.c index 4e5970a..4704d51 100644 --- a/bin/kenv/kenv.c +++ b/bin/kenv/kenv.c @@ -38,7 +38,8 @@ static char sbuf[1024]; static void usage(void) { - errx(1, "usage: [-h] [variable]"); + (void)fprintf(stderr, "usage: kenv [-h] [variable]\n"); + exit(1); } int |