diff options
author | archie <archie@FreeBSD.org> | 2000-07-19 17:24:53 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-07-19 17:24:53 +0000 |
commit | b16240b827e66c5ee41e826518fe10d23ef44bfd (patch) | |
tree | f1af04e3f217eda2a60834310d863dc93a665961 /sbin/ifconfig/ifconfig.c | |
parent | 531e62c8255139cef292d60156add4218c11eb75 (diff) | |
download | FreeBSD-src-b16240b827e66c5ee41e826518fe10d23ef44bfd.zip FreeBSD-src-b16240b827e66c5ee41e826518fe10d23ef44bfd.tar.gz |
Show the actual command line usage in the man page and usage error string.
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index cfc4722..fa1d9e9 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -312,17 +312,19 @@ void usage() { #ifndef INET6 - fprintf(stderr, "%s\n%s\n%s\n%s\n", + fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", "usage: ifconfig interface address_family [address [dest_address]]", " [parameters]", " ifconfig -a [-d] [-u] [address_family]", - " ifconfig -l [-d] [-u] [address_family]"); + " ifconfig -l [-d] [-u] [address_family]", + " ifconfig [-d] [-u]"); #else - fprintf(stderr, "%s\n%s\n%s\n%s\n", + fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", "usage: ifconfig [-L] interface address_family [address [dest_address]]", " [parameters]", " ifconfig -a [-L] [-d] [-u] [address_family]", - " ifconfig -l [-d] [-u] [address_family]"); + " ifconfig -l [-d] [-u] [address_family]", + " ifconfig [-L] [-d] [-u]"); #endif exit(1); } |