Sync program's usage() with manpage's SYNOPSIS.
This commit is contained in:
parent
9b3eb50354
commit
f682f10c76
usr.bin
asa
brandelf
c89
c99
catman
colldef
dirname
du
finger
from
fstat
ktrdump
lastcomm
mesg
newkey
nice
pathchk
printf
renice
rsh
rup
ruptime
rusers
rwall
showmount
time
truncate
ul
unifdef
vmstat
write
xargs
xstr
ypcat
ypmatch
@ -86,7 +86,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
|
||||
fprintf(stderr, "usage: asa [file...]\n");
|
||||
fprintf(stderr, "usage: asa [file ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,8 @@ fail:
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: brandelf [-f ELF ABI number] [-v] [-l] [-t string] file ...\n");
|
||||
(void)fprintf(stderr,
|
||||
"usage: brandelf [-lv] [-f ELF_ABI_number] [-t string] file ...\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -33,17 +33,12 @@
|
||||
.Nd POSIX.2 C language compiler
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl c
|
||||
.Op Fl D Ar name Ns Op = Ns Ar value
|
||||
.Ar ...
|
||||
.Op Fl E
|
||||
.Op Fl g
|
||||
.Op Fl I Ar directory ...
|
||||
.Op Fl L Ar directory ...
|
||||
.Op Fl cEgOs
|
||||
.Oo Fl D Ar name Ns Oo = Ns Ar value Oc Oc ...
|
||||
.Oo Fl I Ar directory Oc ...
|
||||
.Oo Fl L Ar directory Oc ...
|
||||
.Op Fl o Ar outfile
|
||||
.Op Fl O
|
||||
.Op Fl s
|
||||
.Op Fl U Ar name ...
|
||||
.Oo Fl U Ar name Oc ...
|
||||
.Ar operand ...
|
||||
.Sh DESCRIPTION
|
||||
This is the name of the C language compiler as required by the
|
||||
|
@ -102,8 +102,8 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: c89 [-c] [-D name[=value]] [...] [-E] [-g] [-I directory ...]\n"
|
||||
" [-L directory ...] [-o outfile] [-O] [-s] [-U name ...] operand ...\n"
|
||||
"usage: c89 [-cEgOs] [-D name[=value]] ... [-I directory] ... [-L directory] ...\n"
|
||||
" [-o outfile] [-U name] ... operand ...\n"
|
||||
"\n"
|
||||
" where operand is one or more of file.c, file.o, file.a\n"
|
||||
" or -llibrary\n");
|
||||
|
@ -35,13 +35,12 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl cEgs
|
||||
.Op Fl D Ar name Ns Op = Ns Ar value
|
||||
.Ar ...
|
||||
.Op Fl I Ar directory ...
|
||||
.Op Fl L Ar directory ...
|
||||
.Oo Fl D Ar name Ns Oo = Ns Ar value Oc Oc ...
|
||||
.Oo Fl I Ar directory Oc ...
|
||||
.Oo Fl L Ar directory Oc ...
|
||||
.Op Fl o Ar outfile
|
||||
.Op Fl O Ar optlevel
|
||||
.Op Fl U Ar name ...
|
||||
.Oo Fl U Ar name Oc ...
|
||||
.Ar operand ...
|
||||
.Sh DESCRIPTION
|
||||
This is the name of the C language compiler as required by the
|
||||
|
@ -126,9 +126,8 @@ addlib(const char *lib)
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: c99 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...\n");
|
||||
fprintf(stderr,
|
||||
" [-o outfile] [-O optlevel] [-U name]... operand ...\n");
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: c99 [-cEgs] [-D name[=value]] ... [-I directory] ... [-L directory] ...",
|
||||
" [-o outfile] [-O optlevel] [-U name] ... operand ...");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -741,7 +741,8 @@ determine_locale(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: %s [-fLnrv] [directories...]\n", getprogname());
|
||||
fprintf(stderr, "usage: %s [-fLnrv] [directories ...]\n",
|
||||
getprogname());
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ main(int ac, char **av)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: colldef [-o out_file] [-I map_dir] [filename]\n");
|
||||
fprintf(stderr, "usage: colldef [-I map_dir] [-o out_file] [filename]\n");
|
||||
exit(EX_USAGE);
|
||||
}
|
||||
|
||||
|
@ -79,6 +79,6 @@ void
|
||||
usage(void)
|
||||
{
|
||||
|
||||
(void)fprintf(stderr, "usage: dirname path\n");
|
||||
(void)fprintf(stderr, "usage: dirname string\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -41,11 +41,11 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl H | L | P
|
||||
.Op Fl I Ar mask
|
||||
.Op Fl a | s | d Ar depth
|
||||
.Op Fl c
|
||||
.Op Fl h | k | m
|
||||
.Op Fl x
|
||||
.Op Fl I Ar mask
|
||||
.Op Ar
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
|
@ -154,7 +154,8 @@ option(int argc, char **argv)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: finger [-46klmpshoT] [login ...]\n");
|
||||
(void)fprintf(stderr,
|
||||
"usage: finger [-46gklmpshoT] [user ...] [user@host ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -41,8 +41,8 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl c
|
||||
.Op Fl s Ar sender
|
||||
.Op Fl f Ar file
|
||||
.Op Fl s Ar sender
|
||||
.Op Ar user
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
|
@ -927,6 +927,6 @@ void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: fstat [-fmnv] [-p pid] [-u user] [-N system] [-M core] [file ...]\n");
|
||||
"usage: fstat [-fmnv] [-M core] [-N system] [-p pid] [-u user] [file ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#define SBUFLEN 128
|
||||
#define USAGE \
|
||||
"usage: ktrdump [-c] [-f] [-q] [-r] [-t] [-e execfile] [-i ktrfile ] [-m corefile] [-o outfile]"
|
||||
"usage: ktrdump [-cfqrt] [-e execfile] [-i ktrfile] [-m corefile] [-o outfile]"
|
||||
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
@ -285,5 +285,7 @@ main(int ac, char **av)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
errx(1, USAGE);
|
||||
|
||||
fprintf(stderr, USAGE);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -279,6 +279,6 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: lastcomm [-EScesu] [ -f file ] [command ...] [user ...] [tty ...]\n");
|
||||
"usage: lastcomm [-EScesu] [-f file] [command ...] [user ...] [terminal ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -111,6 +111,6 @@ main(int argc, char *argv[])
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: mesg [y | n]\n");
|
||||
(void)fprintf(stderr, "usage: mesg [n | y]\n");
|
||||
exit(2);
|
||||
}
|
||||
|
@ -170,8 +170,8 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: newkey [-u username]",
|
||||
" newkey [-h hostname]");
|
||||
"usage: newkey -h hostname",
|
||||
" newkey -u username");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,7 @@ void
|
||||
usage(void)
|
||||
{
|
||||
|
||||
(void)fprintf(stderr, "usage: nice [-n incr] utility [arguments]\n");
|
||||
(void)fprintf(stderr,
|
||||
"usage: nice [-n increment] utility [argument ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
|
||||
fprintf(stderr, "usage: pathchk [-p] pathname...\n");
|
||||
fprintf(stderr, "usage: pathchk [-p] pathname ...\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -552,5 +552,5 @@ asciicode(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: printf format [arg ...]\n");
|
||||
(void)fprintf(stderr, "usage: printf format [arguments ...]\n");
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ static void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n%s\n",
|
||||
"usage: renice priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]",
|
||||
"usage: renice priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]",
|
||||
" renice -n increment [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -371,6 +371,6 @@ usage(void)
|
||||
{
|
||||
|
||||
(void)fprintf(stderr,
|
||||
"usage: rsh [-46dn] [-l login] [-t timeout] host [command]\n");
|
||||
"usage: rsh [-46dn] [-l username] [-t timeout] host [command]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ allhosts(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: rup [hosts ...]\n");
|
||||
fprintf(stderr, "usage: rup [host ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -298,6 +298,6 @@ tcmp(const void *a1, const void *a2)
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: ruptime [-alrut]\n");
|
||||
(void)fprintf(stderr, "usage: ruptime [-alrtu] [host ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
|
||||
fprintf(stderr, "usage: rusers [-la] [hosts ...]\n");
|
||||
fprintf(stderr, "usage: rusers [-al] [host ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ main(int argc, char *argv[])
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: rwall hostname [file]\n");
|
||||
fprintf(stderr, "usage: rwall host [file]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -372,7 +372,7 @@ xdr_exports(xdrsp, exp)
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "usage: showmount [-a | -d] [-e3] host\n");
|
||||
fprintf(stderr, "usage: showmount [-a | -d] [-e3] [host]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -233,7 +233,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: time [-al] [-h|-p] [-o file] utility [argument ...]\n");
|
||||
"usage: time [-al] [-h | -p] [-o file] utility [argument ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "%s\n%s\n",
|
||||
"usage: truncate [-c] -s [+|-]size[K|M|G] file ...",
|
||||
"usage: truncate [-c] -s [+|-]size[K|k|M|m|G|g] file ...",
|
||||
" truncate [-c] -r rfile file ...");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
.Nm
|
||||
.Op Fl i
|
||||
.Op Fl t Ar terminal
|
||||
.Op Ar name Ar ...
|
||||
.Op Ar
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
|
@ -165,7 +165,7 @@ main(int argc, char **argv)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: ul [-i] [-t terminal] file...\n");
|
||||
fprintf(stderr, "usage: ul [-i] [-t terminal] [file ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
.Nd remove preprocessor conditionals from code
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl ceklnst
|
||||
.Op Fl cdeklnst
|
||||
.Op Fl I Ns Ar path
|
||||
.Op Fl D Ns Ar sym Ns Op = Ns Ar val
|
||||
.Op Fl U Ns Ar sym
|
||||
@ -153,6 +153,9 @@ is complemented,
|
||||
i.e., the lines that would have been removed or blanked
|
||||
are retained and vice versa.
|
||||
.Pp
|
||||
.It Fl d
|
||||
Turn on printing of degugging messages.
|
||||
.Pp
|
||||
.It Fl e
|
||||
Because
|
||||
.Nm
|
||||
|
@ -300,7 +300,7 @@ main(int argc, char *argv[])
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: unifdef [-cdeklnst]"
|
||||
fprintf(stderr, "usage: unifdef [-cdeklnst] [-Ipath]"
|
||||
" [-Dsym[=val]] [-Usym] [-iDsym[=val]] [-iUsym] ... [file]\n");
|
||||
exit(2);
|
||||
}
|
||||
|
@ -1033,7 +1033,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "%s%s",
|
||||
"usage: vmstat [-aimsz] [-c count] [-M core [-N system]] [-w wait]\n",
|
||||
" [-n devs] [disks]\n");
|
||||
"usage: vmstat [-afimsz] [-c count] [-M core [-N system]] [-w wait]\n",
|
||||
" [-n devs] [-p type,if,pass] [disks]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Ar user
|
||||
.Op Ar ttyname
|
||||
.Op Ar tty
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
|
@ -57,7 +57,7 @@
|
||||
.Fl n Ar number
|
||||
.Op Fl x
|
||||
.Oc
|
||||
.Op Fl P Ar maxjobs
|
||||
.Op Fl P Ar maxprocs
|
||||
.Op Fl s Ar size
|
||||
.Op Ar utility Op Ar argument ...
|
||||
.Sh DESCRIPTION
|
||||
|
@ -40,10 +40,9 @@
|
||||
.Nd "extract strings from C programs to implement shared strings"
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl c
|
||||
.Op Fl cv
|
||||
.Op Fl
|
||||
.Op Fl v
|
||||
.Op Ar file
|
||||
.Op Ar
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
|
@ -67,7 +67,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "%s\n%s\n",
|
||||
"usage: ypcat [-k] [-d domainname] [-t] mapname",
|
||||
"usage: ypcat [-kt] [-d domainname] mapname",
|
||||
" ypcat -x");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "%s\n%s\n",
|
||||
"usage: ypmatch [-d domain] [-t] [-k] key [key ...] mname",
|
||||
"usage: ypmatch [-kt] [-d domainname] key ... mapname",
|
||||
" ypmatch -x");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user