Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
This commit is contained in:
parent
5cd51ad03a
commit
4d6b787d2d
@ -373,7 +373,7 @@ getoptscmd(int argc, char **argv)
|
||||
char **optbase = NULL;
|
||||
|
||||
if (argc < 3)
|
||||
error("Usage: getopts optstring var [arg]");
|
||||
error("usage: getopts optstring var [arg]");
|
||||
else if (argc == 3)
|
||||
optbase = shellparam.p;
|
||||
else
|
||||
|
@ -18,7 +18,7 @@ wscons_start()
|
||||
wscfg=/usr/sbin/wsconscfg
|
||||
wsfld=/usr/sbin/wsfontload
|
||||
config=/etc/wscons.conf
|
||||
usage="Usage: wsconfig [-n] [-f configfile] [-font fontpgm] [-screen screenpgm]"
|
||||
usage="usage: wsconfig [-n] [-f configfile] [-font fontpgm] [-screen screenpgm]"
|
||||
DOIT=
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
|
@ -184,7 +184,7 @@ restart-mspq)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop|restart}" >&2
|
||||
echo "usage: `basename $0` {start|stop|restart}" >&2
|
||||
echo " `basename $0` {start-mta|stop-mta|restart-mta}" >&2
|
||||
echo " `basename $0` {start-mspq|stop-mspq|restart-mspq}" >&2
|
||||
exit 64
|
||||
|
@ -550,7 +550,7 @@ load_rc_config()
|
||||
#
|
||||
rc_usage()
|
||||
{
|
||||
echo -n 1>&2 "Usage: $0 [fast|force]("
|
||||
echo -n 1>&2 "usage: $0 [fast|force]("
|
||||
|
||||
_sep=
|
||||
for _elem in $*; do
|
||||
|
@ -66,7 +66,7 @@ static const char rcsid[] =
|
||||
#include <err.h>
|
||||
#include "hdr.h" /* SEED lives in there; keep them coordinated. */
|
||||
|
||||
#define USAGE "Usage: setup file > data.c (file is typically glorkz)"
|
||||
#define USAGE "usage: setup file > data.c (file is typically glorkz)"
|
||||
|
||||
#define YES 1
|
||||
#define NO 0
|
||||
|
@ -130,7 +130,7 @@ main(ac, av)
|
||||
|
||||
if (f_usage)
|
||||
fprintf(stderr,
|
||||
"Usage: %s -[u?lstp] [-[gf] game_name] [-r random seed]\n",
|
||||
"usage: %s -[u?lstp] [-[gf] game_name] [-r random seed]\n",
|
||||
name);
|
||||
if (f_showscore)
|
||||
log_score(1);
|
||||
|
@ -52,7 +52,7 @@ static const char plwhite[] = "Player is white, computer is red.";
|
||||
static const char nocomp[] = "(No computer play.)";
|
||||
|
||||
const char *const descr[] = {
|
||||
"Usage: backgammon [-h n r w b pr pw pb tterm sfile]\n",
|
||||
"usage: backgammon [-h n r w b pr pw pb tterm sfile]\n",
|
||||
"\t-h\tgets this list\n\t-n\tdon't ask for rules or instructions",
|
||||
"\t-r\tplayer is red (implies -n)\n\t-w\tplayer is white (implies -n)",
|
||||
"\t-b\ttwo players, red and white (implies -n)",
|
||||
|
@ -1124,7 +1124,7 @@ char *op[];
|
||||
{
|
||||
default:
|
||||
case '?':
|
||||
(void) fprintf(stderr, "Usage: battle [-s | -b] [-c]\n");
|
||||
(void) fprintf(stderr, "usage: battle [-s | -b] [-c]\n");
|
||||
(void) fprintf(stderr, "\tWhere the options are:\n");
|
||||
(void) fprintf(stderr, "\t-s : play a salvo game\n");
|
||||
(void) fprintf(stderr, "\t-b : play a blitz game\n");
|
||||
|
@ -76,7 +76,7 @@ main(argc, argv)
|
||||
int uid;
|
||||
|
||||
if (argc > 2) {
|
||||
printf("Usage: cfscores [user]\n");
|
||||
printf("usage: cfscores [user]\n");
|
||||
exit(1);
|
||||
}
|
||||
dbfd = open(_PATH_SCORE, O_RDONLY);
|
||||
|
@ -92,7 +92,7 @@ main(int argc, char **argv)
|
||||
struct args args;
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "Usage: guard_b <stacksize> <guardsize>\n");
|
||||
fprintf(stderr, "usage: guard_b <stacksize> <guardsize>\n");
|
||||
exit(1);
|
||||
}
|
||||
fprintf(stderr, "Test begin\n");
|
||||
|
@ -41,7 +41,7 @@
|
||||
# makelist.sh: Automatically generate header files...
|
||||
|
||||
AWK=/usr/bin/awk
|
||||
USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
|
||||
USAGE="usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
|
||||
|
||||
if [ "x$1" = "x" ]
|
||||
then
|
||||
|
@ -92,7 +92,7 @@ main(int argc, char **argv)
|
||||
struct args args;
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "Usage: guard_b <stacksize> <guardsize>\n");
|
||||
fprintf(stderr, "usage: guard_b <stacksize> <guardsize>\n");
|
||||
exit(1);
|
||||
}
|
||||
fprintf(stderr, "Test begin\n");
|
||||
|
@ -92,7 +92,7 @@ main(int argc, char **argv)
|
||||
struct args args;
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "Usage: guard_b <stacksize> <guardsize>\n");
|
||||
fprintf(stderr, "usage: guard_b <stacksize> <guardsize>\n");
|
||||
exit(1);
|
||||
}
|
||||
fprintf(stderr, "Test begin\n");
|
||||
|
@ -71,7 +71,7 @@ static int ReceivedSignal;
|
||||
static int
|
||||
usage(const char *prog)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]"
|
||||
fprintf(stderr, "usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]"
|
||||
" [-p provider] interface\n", prog);
|
||||
return EX_USAGE;
|
||||
}
|
||||
|
@ -818,7 +818,7 @@ struct op *t;
|
||||
register int nl = 0;
|
||||
|
||||
if (t->words[1] == NULL) {
|
||||
err("Usage: read name ...");
|
||||
err("usage: read name ...");
|
||||
return(1);
|
||||
}
|
||||
for (wp = t->words+1; *wp; wp++) {
|
||||
|
@ -28,7 +28,7 @@
|
||||
#
|
||||
|
||||
if ($#ARGV != 2) {
|
||||
print STDERR "Usage: driver-copy.pl config_file src_ko_dir dst_ko_dir\n";
|
||||
print STDERR "usage: driver-copy.pl config_file src_ko_dir dst_ko_dir\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#
|
||||
|
||||
if ($#ARGV != 1) {
|
||||
print STDERR "Usage: driver-remove.pl config_file BOOTMFS\n";
|
||||
print STDERR "usage: driver-remove.pl config_file BOOTMFS\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
|
@ -582,7 +582,7 @@ usage(void)
|
||||
static const char common[] =
|
||||
"[-BFdpvlyn] [-T fstype:fsoptions] [-t fstype]";
|
||||
|
||||
(void)fprintf(stderr, "Usage: %s %s [special|node]...\n",
|
||||
(void)fprintf(stderr, "usage: %s %s [special|node]...\n",
|
||||
getprogname(), common);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void) fprintf(stderr,
|
||||
"Usage: %s [-BFpfny] [-b block] [-c level] [-m mode] "
|
||||
"usage: %s [-BFpfny] [-b block] [-c level] [-m mode] "
|
||||
"filesystem ...\n",
|
||||
getprogname());
|
||||
exit(1);
|
||||
|
@ -398,7 +398,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void) fprintf(stderr,
|
||||
"Usage: %s [-dfnpy] [-B be|le] [-b block] [-c level] [-m mode] "
|
||||
"usage: %s [-dfnpy] [-B be|le] [-b block] [-c level] [-m mode] "
|
||||
"filesystem ...\n",
|
||||
getprogname());
|
||||
exit(1);
|
||||
|
@ -59,7 +59,7 @@ static void usage(void) __dead2;
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
errexit("Usage: fsck_msdos [-fnpy] filesystem ... \n");
|
||||
errexit("usage: fsck_msdos [-fnpy] filesystem ... \n");
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -36,7 +36,7 @@ enum {UNSET, ATTACH, DETACH, LIST} action = UNSET;
|
||||
void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "Usage:\n");
|
||||
fprintf(stderr, "usage:\n");
|
||||
fprintf(stderr, "\tmdconfig -a -t type [-o [no]option]... [ -f file] [-s size] [-u unit]\n");
|
||||
fprintf(stderr, "\tmdconfig -d -u unit\n");
|
||||
fprintf(stderr, "\tmdconfig -l [-u unit]\n");
|
||||
|
@ -676,13 +676,13 @@ usage(void)
|
||||
name = "mdmfs";
|
||||
if (!compat)
|
||||
fprintf(stderr,
|
||||
"Usage: %s [-DLMNSUX] [-a maxcontig [-b block-size] [-c cylinders]\n"
|
||||
"usage: %s [-DLMNSUX] [-a maxcontig [-b block-size] [-c cylinders]\n"
|
||||
"\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n"
|
||||
"\t[-m percent-free] [-n rotational-positions] [-O optimization]\n"
|
||||
"\t[-o mount-options] [-p permissions] [-s size] [-w user:group]\n"
|
||||
"\tmd-device mount-point\n", name);
|
||||
fprintf(stderr,
|
||||
"Usage: %s -C [-NU] [-a maxcontig] [-b block-size] [-c cylinders]\n"
|
||||
"usage: %s -C [-NU] [-a maxcontig] [-b block-size] [-c cylinders]\n"
|
||||
"\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n"
|
||||
"\t[-m percent-free] [-n rotational-positions] [-O optimization]\n"
|
||||
"\t[-o mount-options] [-s size] md-device mount-point\n", name);
|
||||
|
@ -173,7 +173,7 @@ vinum_read(int argc, char *argv[], char *arg0[])
|
||||
|
||||
reply = (struct _ioctl_reply *) &buffer;
|
||||
if (argc < 1) { /* wrong arg count */
|
||||
fprintf(stderr, "Usage: read drive [drive ...]\n");
|
||||
fprintf(stderr, "usage: read drive [drive ...]\n");
|
||||
return;
|
||||
}
|
||||
strcpy(buffer, "read ");
|
||||
@ -241,7 +241,7 @@ vinum_rm(int argc, char *argv[], char *arg0[])
|
||||
struct vinum_ioctl_msg *message = (struct vinum_ioctl_msg *) &reply;
|
||||
|
||||
if (argc == 0) /* start everything */
|
||||
fprintf(stderr, "Usage: rm object [object...]\n");
|
||||
fprintf(stderr, "usage: rm object [object...]\n");
|
||||
else { /* start specified objects */
|
||||
int index;
|
||||
enum objecttype type;
|
||||
@ -933,7 +933,7 @@ vinum_attach(int argc, char *argv[], char *argv0[])
|
||||
if ((argc < 2)
|
||||
|| (argc > 4)) {
|
||||
fprintf(stderr,
|
||||
"Usage: \tattach <subdisk> <plex> [rename] [<plexoffset>]\n"
|
||||
"usage: \tattach <subdisk> <plex> [rename] [<plexoffset>]\n"
|
||||
"\tattach <plex> <volume> [rename]\n");
|
||||
return;
|
||||
}
|
||||
@ -1055,7 +1055,7 @@ vinum_detach(int argc, char *argv[], char *argv0[])
|
||||
if ((argc < 1)
|
||||
|| (argc > 2)) {
|
||||
fprintf(stderr,
|
||||
"Usage: \tdetach <subdisk> [rename]\n"
|
||||
"usage: \tdetach <subdisk> [rename]\n"
|
||||
"\tdetach <plex> [rename]\n");
|
||||
return;
|
||||
}
|
||||
@ -1196,7 +1196,7 @@ void
|
||||
vinum_rename(int argc, char *argv[], char *argv0[])
|
||||
{
|
||||
if (argc != 2) {
|
||||
fprintf(stderr, "Usage: \trename <object> <new name>\n");
|
||||
fprintf(stderr, "usage: \trename <object> <new name>\n");
|
||||
return;
|
||||
}
|
||||
if (ioctl(superdev, VINUM_GETCONFIG, &vinum_conf) < 0) {
|
||||
@ -1225,7 +1225,7 @@ vinum_mv(int argc, char *argv[], char *argv0[])
|
||||
struct vinum_ioctl_msg *msg = (struct vinum_ioctl_msg *) &reply;
|
||||
|
||||
if (argc < 2) {
|
||||
fprintf(stderr, "Usage: \tmove <dest> <src> ...\n");
|
||||
fprintf(stderr, "usage: \tmove <dest> <src> ...\n");
|
||||
return;
|
||||
}
|
||||
/* Get current config */
|
||||
@ -1433,7 +1433,7 @@ vinum_setdaemon(int argc, char *argv[], char *argv0[])
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Usage: \tsetdaemon [<bitmask>]\n");
|
||||
fprintf(stderr, "usage: \tsetdaemon [<bitmask>]\n");
|
||||
}
|
||||
checkupdates(); /* make sure we're updating */
|
||||
}
|
||||
@ -1445,7 +1445,7 @@ vinum_saveconfig(int argc, char *argv[], char *argv0[])
|
||||
int ioctltype;
|
||||
|
||||
if (argc != 0) {
|
||||
printf("Usage: saveconfig\n");
|
||||
printf("usage: saveconfig\n");
|
||||
return;
|
||||
}
|
||||
ioctltype = 1; /* user saveconfig */
|
||||
@ -2248,7 +2248,7 @@ vinum_readpol(int argc, char *argv[], char *argv0[])
|
||||
int plexno;
|
||||
|
||||
if (argc == 0) { /* start everything */
|
||||
fprintf(stderr, "Usage: readpol <volume> <plex>|round\n");
|
||||
fprintf(stderr, "usage: readpol <volume> <plex>|round\n");
|
||||
return;
|
||||
}
|
||||
object = find_object(argv[1], &type); /* look for it */
|
||||
@ -2360,7 +2360,7 @@ vinum_checkparity(int argc, char *argv[], char *argv0[])
|
||||
{
|
||||
Verbose = vflag; /* accept -v for verbose */
|
||||
if (argc == 0) /* no parameters? */
|
||||
fprintf(stderr, "Usage: checkparity object [object...]\n");
|
||||
fprintf(stderr, "usage: checkparity object [object...]\n");
|
||||
else
|
||||
parityops(argc, argv, checkparity);
|
||||
}
|
||||
@ -2369,7 +2369,7 @@ void
|
||||
vinum_rebuildparity(int argc, char *argv[], char *argv0[])
|
||||
{
|
||||
if (argc == 0) /* no parameters? */
|
||||
fprintf(stderr, "Usage: rebuildparity object [object...]\n");
|
||||
fprintf(stderr, "usage: rebuildparity object [object...]\n");
|
||||
else
|
||||
parityops(argc, argv, vflag ? rebuildandcheckparity : rebuildparity);
|
||||
}
|
||||
|
@ -1031,7 +1031,7 @@ vinum_printconfig(int argc, char *argv[], char *argv0[])
|
||||
FILE *of;
|
||||
|
||||
if (argc > 1) {
|
||||
fprintf(stderr, "Usage: \tprintconfig [<outfile>]\n");
|
||||
fprintf(stderr, "usage: \tprintconfig [<outfile>]\n");
|
||||
return;
|
||||
} else if (argc == 1)
|
||||
of = fopen(argv[0], "w");
|
||||
|
@ -74,7 +74,7 @@ void readFromPhone (char *path)
|
||||
|
||||
void usage (void)
|
||||
{
|
||||
fprintf(stderr,"Usage: answer -D device -d destination -s source\n");
|
||||
fprintf(stderr,"usage: answer -D device -d destination -s source\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
|
||||
usage () {
|
||||
echo "Usage: $0 [-i interface] [-f /path/to/users.file] [up|down|show]"
|
||||
echo "usage: $0 [-i interface] [-f /path/to/users.file] [up|down|show]"
|
||||
}
|
||||
|
||||
# Defaults
|
||||
|
@ -167,7 +167,7 @@ case $1 in
|
||||
bridge_stop
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ether.bridge [ start | stop | stats ]"
|
||||
echo "usage: ether.bridge [ start | stop | stats ]"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
|
@ -31,7 +31,7 @@ trap "rm $sysdcl $syscompat $syscompatdcl $sysent $sysinc $sysarg" 0
|
||||
touch $sysdcl $syscompat $syscompatdcl $sysent $sysinc $sysarg
|
||||
|
||||
case $# in
|
||||
0) echo "Usage: $0 input-file <config-file>" 1>&2
|
||||
0) echo "usage: $0 input-file <config-file>" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
@ -54,7 +54,7 @@ main(int argc, char *argv[])
|
||||
const char *localename;
|
||||
|
||||
if (argc != 2) {
|
||||
(void)fprintf(stderr, "Usage: localeck <locale_name>\n");
|
||||
(void)fprintf(stderr, "usage: localeck <locale_name>\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -308,7 +308,7 @@ main(int argc, char **argv)
|
||||
setbuf(stdout, NULL);
|
||||
setbuf(stderr, NULL);
|
||||
if (argc != 3)
|
||||
errx(1, "Usage: %s file1 file2", argv[0]);
|
||||
errx(1, "usage: %s file1 file2", argv[0]);
|
||||
|
||||
t1 = dofile(argv[1]);
|
||||
if (t1 == NULL)
|
||||
|
@ -82,7 +82,7 @@ int yield(int argc, char *argv[])
|
||||
n = nslaves = 10;
|
||||
|
||||
else if (argc != 2) {
|
||||
fprintf(stderr, "Usage: prog [n_instances]\n");
|
||||
fprintf(stderr, "usage: prog [n_instances]\n");
|
||||
exit(-1);
|
||||
}
|
||||
else
|
||||
|
@ -106,7 +106,7 @@ read_config(FILE *fp)
|
||||
int ro = 0;
|
||||
|
||||
if (ac < 2) {
|
||||
fprintf(stderr, "Usage: assign device ...\n");
|
||||
fprintf(stderr, "usage: assign device ...\n");
|
||||
quit(1);
|
||||
}
|
||||
if (av[2] && !strcasecmp(av[2], "-ro")) {
|
||||
@ -119,7 +119,7 @@ read_config(FILE *fp)
|
||||
if (!strncasecmp(av[1], "lpt", 3)) {
|
||||
if (av[1][3] < '1' || av[1][3] > '4'
|
||||
|| av[1][4] != ':' || ac < 3) {
|
||||
fprintf(stderr, "Usage: assign lptn: [direct] lpr-name [ time-out]\n");
|
||||
fprintf(stderr, "usage: assign lptn: [direct] lpr-name [ time-out]\n");
|
||||
quit(1);
|
||||
}
|
||||
printer = av[1][3] - '1';
|
||||
@ -136,7 +136,7 @@ read_config(FILE *fp)
|
||||
}
|
||||
} else if (!strncasecmp(av[1], "flop", 4)) {
|
||||
if (ac != 4) {
|
||||
fprintf(stderr, "Usage: assign flop [-ro] file type\n");
|
||||
fprintf(stderr, "usage: assign flop [-ro] file type\n");
|
||||
quit(1);
|
||||
}
|
||||
|
||||
@ -161,7 +161,7 @@ read_config(FILE *fp)
|
||||
init_hard:
|
||||
switch (ac) {
|
||||
default:
|
||||
fprintf(stderr, "Usage: assign [A-Z]: [-ro] directory\n"
|
||||
fprintf(stderr, "usage: assign [A-Z]: [-ro] directory\n"
|
||||
" assign hard [-ro] file type [boot_sector]\n"
|
||||
" assign hard [-ro] file cylinders heads sectors/track [boot_sector]\n");
|
||||
quit(1);
|
||||
@ -185,7 +185,7 @@ read_config(FILE *fp)
|
||||
}
|
||||
} else if (av[1][1] == ':') {
|
||||
if (av[1][2] || !isalpha(av[1][0])) {
|
||||
fprintf(stderr, "Usage: assign [A-Z]: ...\n");
|
||||
fprintf(stderr, "usage: assign [A-Z]: ...\n");
|
||||
quit(1);
|
||||
}
|
||||
drive = drlton(av[1][0]);
|
||||
@ -204,31 +204,31 @@ read_config(FILE *fp)
|
||||
unsigned char irq;
|
||||
|
||||
if ((ac != 5) || (!isdigit(av[1][3]))) {
|
||||
fprintf(stderr, "Usage: assign com[1-4] path addr irq\n");
|
||||
fprintf(stderr, "usage: assign com[1-4] path addr irq\n");
|
||||
quit(1);
|
||||
}
|
||||
port = atoi(&av[1][3]) - 1;
|
||||
if ((port < 0) || (port > (N_COMS_MAX - 1))) {
|
||||
fprintf(stderr, "Usage: assign com[1-4] path addr irq\n");
|
||||
fprintf(stderr, "usage: assign com[1-4] path addr irq\n");
|
||||
quit(1);
|
||||
}
|
||||
errno = 0;
|
||||
addr = (int)strtol(av[3], '\0', 0);
|
||||
/* XXX DEBUG ISA-specific */
|
||||
if ((errno != 0) || (addr > MAXPORT)) {
|
||||
fprintf(stderr, "Usage: assign com[1-4] path addr irq\n");
|
||||
fprintf(stderr, "usage: assign com[1-4] path addr irq\n");
|
||||
quit(1);
|
||||
}
|
||||
errno = 0;
|
||||
irq = (unsigned char)strtol(av[4], '\0', 0);
|
||||
/* XXX DEBUG ISA-specific */
|
||||
if ((errno != 0) || (irq < 2) || (irq > 7)) {
|
||||
fprintf(stderr, "Usage: assign com[1-4] path addr irq[2-7]\n");
|
||||
fprintf(stderr, "usage: assign com[1-4] path addr irq[2-7]\n");
|
||||
quit(1);
|
||||
}
|
||||
init_com(port, av[2], addr, irq);
|
||||
} else {
|
||||
fprintf(stderr, "Usage: assign flop ...\n");
|
||||
fprintf(stderr, "usage: assign flop ...\n");
|
||||
fprintf(stderr, " assign hard ...\n");
|
||||
fprintf(stderr, " assign [A-Z]: ...\n");
|
||||
fprintf(stderr, " assign comX ...\n");
|
||||
@ -236,7 +236,7 @@ read_config(FILE *fp)
|
||||
}
|
||||
} else if (!strcasecmp(av[0], "boot")) {
|
||||
if (ac != 2 || av[1][2] || !isalpha(av[1][0])) {
|
||||
fprintf(stderr, "Usage: boot [A: | C:]\n");
|
||||
fprintf(stderr, "usage: boot [A: | C:]\n");
|
||||
quit(1);
|
||||
}
|
||||
bootdrive = drlton(av[1][0]);
|
||||
@ -248,7 +248,7 @@ read_config(FILE *fp)
|
||||
int p, c;
|
||||
if (ac < 2 || ac > 3 || !isdigit(av[1][0]) ||
|
||||
(ac == 3 && !isdigit(av[2][0]))) {
|
||||
fprintf(stderr, "Usage: portmap port [count]\n");
|
||||
fprintf(stderr, "usage: portmap port [count]\n");
|
||||
quit(1);
|
||||
}
|
||||
p = strtol(av[1], 0, 0);
|
||||
@ -262,7 +262,7 @@ read_config(FILE *fp)
|
||||
} else if (!strcasecmp(av[0], "setver")) {
|
||||
int v;
|
||||
if (ac != 3 || !(v = strtol(av[2], 0, 0))) {
|
||||
fprintf(stderr, "Usage: setver command version\n");
|
||||
fprintf(stderr, "usage: setver command version\n");
|
||||
quit(1);
|
||||
}
|
||||
setver(av[1], v);
|
||||
|
@ -621,7 +621,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "%s\n%s\n%s\n",
|
||||
"Usage: fetch [-146AFMPRUadlmnpqrsv] [-o outputfile] [-S bytes]",
|
||||
"usage: fetch [-146AFMPRUadlmnpqrsv] [-o outputfile] [-S bytes]",
|
||||
" [-B bytes] [-T seconds] [-w seconds]",
|
||||
" [-h host -f file [-c dir] | URL ...]");
|
||||
}
|
||||
|
@ -308,7 +308,7 @@ main(int argc, char *argv[]) {
|
||||
continue;
|
||||
case 'h': default:
|
||||
fprintf(stderr,
|
||||
"Usage: fmt [-cmps] [-d chars] [-l num] [-t num]\n"
|
||||
"usage: fmt [-cmps] [-d chars] [-l num] [-t num]\n"
|
||||
" [-w width | -width | goal [maximum]] [file ...]\n"
|
||||
"Options: -c center each line instead of formatting\n"
|
||||
" -d <chars> double-space after <chars> at line end\n"
|
||||
|
@ -33,7 +33,6 @@ static const char rcsid[] =
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int, char **);
|
||||
extern char *__progname;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
@ -58,7 +57,7 @@ main(argc, argv)
|
||||
}
|
||||
}
|
||||
if (argc - optind != 2 || errflg) {
|
||||
fprintf(stderr, "Usage: %s [-bl] name type\n", __progname);
|
||||
fprintf(stderr, "usage: hesinfo [-bl] name type\n");
|
||||
fprintf(stderr, "\t-l selects long format\n");
|
||||
fprintf(stderr, "\t-b also does hes_to_bind conversion\n");
|
||||
exit(2);
|
||||
|
@ -211,7 +211,7 @@ main(ac, av)
|
||||
break;
|
||||
default:
|
||||
usage:
|
||||
fprintf(stderr, "Usage: mklocale [-d] [-o output] [source]\n");
|
||||
fprintf(stderr, "usage: mklocale [-d] [-o output] [source]\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ main(int argc, char **argv)
|
||||
|
||||
if (strcmp(cmd, "objformat") == 0) {
|
||||
if (argc != 1) {
|
||||
fprintf(stderr, "Usage: objformat\n");
|
||||
fprintf(stderr, "usage: objformat\n");
|
||||
exit(1);
|
||||
}
|
||||
printf("%s\n", objformat);
|
||||
|
@ -57,7 +57,7 @@ static char *yp_host;
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: passwd [-ly] [-d domain] [-h host] [user]\n");
|
||||
fprintf(stderr, "usage: passwd [-ly] [-d domain] [-h host] [user]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -1499,7 +1499,7 @@ progping(char *netid, int argc, char **argv)
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "Usage: rpcinfo [-m | -s] [host]\n");
|
||||
fprintf(stderr, "usage: rpcinfo [-m | -s] [host]\n");
|
||||
#ifdef PORTMAP
|
||||
fprintf(stderr, " rpcinfo -p [host]\n");
|
||||
#endif
|
||||
|
@ -211,7 +211,7 @@ sub print_unix($$) {
|
||||
# Print usage message and exit
|
||||
#
|
||||
sub usage() {
|
||||
print(STDERR "Usage: sockstat [-46clu] [-p ports]\n");
|
||||
print(STDERR "usage: sockstat [-46clu] [-p ports]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -438,7 +438,7 @@ send_tncmd(void (*func)(int, int), const char *cmd, char *name)
|
||||
if (isprefix(name, "help") || isprefix(name, "?")) {
|
||||
int col, len;
|
||||
|
||||
printf("Usage: send %s <value|option>\n", cmd);
|
||||
printf("usage: send %s <value|option>\n", cmd);
|
||||
printf("\"value\" must be from 0 to 255\n");
|
||||
printf("Valid options are:\n\t");
|
||||
|
||||
|
@ -84,7 +84,7 @@ tninit(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s %s%s%s%s\n",
|
||||
fprintf(stderr, "usage: %s %s%s%s%s\n",
|
||||
prompt,
|
||||
"[-4] [-6] [-8] [-E] [-L] [-N] [-S tos] [-c] [-d]",
|
||||
"\n\t[-e char] [-l user] [-n tracefile] ",
|
||||
|
@ -93,7 +93,7 @@ usage(void)
|
||||
{
|
||||
extern char *__progname;
|
||||
|
||||
fprintf(stderr, "Usage: %s -f device [-l] [-n] [-r] [-t tablefile] [-v] name ...\n", __progname);
|
||||
fprintf(stderr, "usage: %s -f device [-l] [-n] [-r] [-t tablefile] [-v] name ...\n", __progname);
|
||||
fprintf(stderr, " %s -f device [-l] [-n] [-r] [-t tablefile] [-v] -a\n", __progname);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"Usage: lint1 [-abcdeghmprstuvwyzF] [-X <id>[,<id>]... src dest\n");
|
||||
"usage: lint1 [-abcdeghmprstuvwyzF] [-X <id>[,<id>]... src dest\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -283,7 +283,7 @@ usage(void)
|
||||
{
|
||||
|
||||
(void)fprintf(stderr,
|
||||
"Usage: lint [-abceghprvwxzHF] [-s|-t] [-i|-nu] [-Dname[=def]]"
|
||||
"usage: lint [-abceghprvwxzHF] [-s|-t] [-i|-nu] [-Dname[=def]]"
|
||||
" [-Uname] [-X <id>[,<id>]...\n");
|
||||
(void)fprintf(stderr,
|
||||
"\t[-Idirectory] [-Ldirectory] [-llibrary] [-ooutputfile]"
|
||||
|
@ -562,7 +562,7 @@ void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Usage: %s [-delmnpqtv] [-f device] [-s speed] [command]"
|
||||
"usage: %s [-delmnpqtv] [-f device] [-s speed] [command]"
|
||||
" [command file ...]\n", getprogname());
|
||||
exit(EX_USAGE);
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ char **argv;
|
||||
void usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Usage: %s [-k <symbol-name>] [-f <keep-list-file>] <files> ...\n",
|
||||
"usage: %s [-k <symbol-name>] [-f <keep-list-file>] <files> ...\n",
|
||||
pname);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ pusage()
|
||||
/*
|
||||
* Avoid gratuitously loading stdio.
|
||||
*/
|
||||
write(STDERR_FILENO, "Usage: ", 7);
|
||||
write(STDERR_FILENO, "usage: ", 7);
|
||||
write(STDERR_FILENO, O_name, strlen(O_name));
|
||||
write(STDERR_FILENO, " ", 1);
|
||||
write(STDERR_FILENO, O_usage, strlen(O_usage));
|
||||
|
@ -41,7 +41,7 @@ enum aflag { NO_AFLAG, ALTPIN_DISABLE, ALTPIN_ENABLE, ALTPIN_QUERY };
|
||||
static int
|
||||
usage(const char *prog)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s -a disable|enable|query device\n", prog);
|
||||
fprintf(stderr, "usage: %s -a disable|enable|query device\n", prog);
|
||||
fprintf(stderr, " %s [-d debug] [-ir] ctrl-device...\n", prog);
|
||||
return (EX_USAGE);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ main(int argc, char **argv)
|
||||
struct in_addr in;
|
||||
|
||||
if (argc < 5)
|
||||
errx(1, "Usage: %s path hostname ip-number command ...\n",
|
||||
errx(1, "usage: %s path hostname ip-number command ...\n",
|
||||
argv[0]);
|
||||
i = chdir(argv[1]);
|
||||
if (i)
|
||||
|
@ -340,7 +340,7 @@ usage(void)
|
||||
{
|
||||
|
||||
fprintf(stderr, "%s\n",
|
||||
"Usage: kldxref [-Rdv] [-f hintfile] path [path..]"
|
||||
"usage: kldxref [-Rdv] [-f hintfile] path [path..]"
|
||||
);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ generic(void (*specificrtn)(struct printer *_pp),
|
||||
char **targv;
|
||||
|
||||
if (argc == 1) {
|
||||
printf("Usage: %s {all | printer ...}\n", argv[0]);
|
||||
printf("usage: %s {all | printer ...}\n", argv[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -796,7 +796,7 @@ down(int argc, char *argv[])
|
||||
struct printer myprinter, *pp = &myprinter;
|
||||
|
||||
if (argc == 1) {
|
||||
printf("Usage: down {all | printer} [message ...]\n");
|
||||
printf("usage: down {all | printer} [message ...]\n");
|
||||
return;
|
||||
}
|
||||
if (!strcmp(argv[1], "all")) {
|
||||
@ -1080,7 +1080,7 @@ topq(int argc, char *argv[])
|
||||
struct printer myprinter, *pp = &myprinter;
|
||||
|
||||
if (argc < 3) {
|
||||
printf("Usage: topq printer [jobnum ...] [user ...]\n");
|
||||
printf("usage: topq printer [jobnum ...] [user ...]\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -406,7 +406,7 @@ HelpCmd(int ac, char **av)
|
||||
default:
|
||||
/* Show help on a specific command */
|
||||
if ((cmd = FindCommand(av[1])) != NULL) {
|
||||
printf("Usage: %s\n", cmd->cmd);
|
||||
printf("usage: %s\n", cmd->cmd);
|
||||
if (cmd->aliases[0] != NULL) {
|
||||
int a = 0;
|
||||
|
||||
|
@ -64,7 +64,7 @@ beep_main(argc, argv)
|
||||
}
|
||||
}
|
||||
if (!valid)
|
||||
errx(1, "Usage: %s beep newstat", argv[0]);
|
||||
errx(1, "usage: %s beep newstat", argv[0]);
|
||||
|
||||
sscanf(argv[1], "%d", &newstat);
|
||||
sprintf(name, CARD_DEVICE, 0);
|
||||
|
@ -68,7 +68,7 @@ power_main(argc, argv)
|
||||
}
|
||||
}
|
||||
if (!valid)
|
||||
errx(1, "Usage: %s power slot newstat", argv[0]);
|
||||
errx(1, "usage: %s power slot newstat", argv[0]);
|
||||
|
||||
sscanf(argv[2], "%d", &newstat);
|
||||
sprintf(name, CARD_DEVICE, atoi(argv[1]));
|
||||
|
@ -182,7 +182,7 @@ usage()
|
||||
{
|
||||
int i;
|
||||
|
||||
fprintf(stderr,"Usage: %s [-cil] [keyname string keyname string...]\n\n",prog);
|
||||
fprintf(stderr,"usage: %s [-cil] [keyname string keyname string...]\n\n",prog);
|
||||
fprintf(stderr,"The following options are available\n");
|
||||
fprintf(stderr,"\t-c\tclears keys first\n");
|
||||
fprintf(stderr,"\t-l\t[sets then] locks further setting\n");
|
||||
|
@ -1092,7 +1092,7 @@ FindExec(struct bundle *bundle, struct cmdtab const *cmds, int argc, int argn,
|
||||
mkPrefix(argn+1, argv, prefix, sizeof prefix));
|
||||
|
||||
if (val == -1)
|
||||
log_Printf(LogWARN, "Usage: %s\n", cmd->syntax);
|
||||
log_Printf(LogWARN, "usage: %s\n", cmd->syntax);
|
||||
else if (val)
|
||||
log_Printf(LogWARN, "%s: Failed %d\n",
|
||||
mkPrefix(argn+1, argv, prefix, sizeof prefix), val);
|
||||
@ -2606,7 +2606,7 @@ LinkCommand(struct cmdargs const *arg)
|
||||
return result;
|
||||
}
|
||||
|
||||
log_Printf(LogWARN, "Usage: %s\n", arg->cmd->syntax);
|
||||
log_Printf(LogWARN, "usage: %s\n", arg->cmd->syntax);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
@ -186,7 +186,7 @@ RestartServer(int signo)
|
||||
static void
|
||||
Usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: ppp [-auto | -foreground | -background | -direct |"
|
||||
fprintf(stderr, "usage: ppp [-auto | -foreground | -background | -direct |"
|
||||
" -dedicated | -ddial | -interactive]"
|
||||
#ifndef NOALIAS
|
||||
" [-nat]"
|
||||
|
@ -215,7 +215,7 @@ nat_RedirectAddr(struct cmdargs const *arg)
|
||||
error = StrToAddr(arg->argv[arg->argn+1], &aliasaddr);
|
||||
if (error) {
|
||||
prompt_Printf(arg->prompt, "address redirect: invalid alias address\n");
|
||||
prompt_Printf(arg->prompt, "Usage: nat %s %s\n", arg->cmd->name,
|
||||
prompt_Printf(arg->prompt, "usage: nat %s %s\n", arg->cmd->name,
|
||||
arg->cmd->syntax);
|
||||
return 1;
|
||||
}
|
||||
@ -223,7 +223,7 @@ nat_RedirectAddr(struct cmdargs const *arg)
|
||||
if (link == NULL) {
|
||||
prompt_Printf(arg->prompt, "address redirect: packet aliasing"
|
||||
" engine error\n");
|
||||
prompt_Printf(arg->prompt, "Usage: nat %s %s\n", arg->cmd->name,
|
||||
prompt_Printf(arg->prompt, "usage: nat %s %s\n", arg->cmd->name,
|
||||
arg->cmd->syntax);
|
||||
}
|
||||
} else
|
||||
@ -269,7 +269,7 @@ nat_RedirectProto(struct cmdargs const *arg)
|
||||
error = StrToAddr(arg->argv[arg->argn + 2], &publicIP);
|
||||
if (error) {
|
||||
prompt_Printf(arg->prompt, "proto redirect: invalid alias address\n");
|
||||
prompt_Printf(arg->prompt, "Usage: nat %s %s\n", arg->cmd->name,
|
||||
prompt_Printf(arg->prompt, "usage: nat %s %s\n", arg->cmd->name,
|
||||
arg->cmd->syntax);
|
||||
return 1;
|
||||
}
|
||||
@ -280,7 +280,7 @@ nat_RedirectProto(struct cmdargs const *arg)
|
||||
error = StrToAddr(arg->argv[arg->argn + 2], &remoteIP);
|
||||
if (error) {
|
||||
prompt_Printf(arg->prompt, "proto redirect: invalid dst address\n");
|
||||
prompt_Printf(arg->prompt, "Usage: nat %s %s\n", arg->cmd->name,
|
||||
prompt_Printf(arg->prompt, "usage: nat %s %s\n", arg->cmd->name,
|
||||
arg->cmd->syntax);
|
||||
return 1;
|
||||
}
|
||||
@ -291,7 +291,7 @@ nat_RedirectProto(struct cmdargs const *arg)
|
||||
if (link == NULL) {
|
||||
prompt_Printf(arg->prompt, "proto redirect: packet aliasing"
|
||||
" engine error\n");
|
||||
prompt_Printf(arg->prompt, "Usage: nat %s %s\n", arg->cmd->name,
|
||||
prompt_Printf(arg->prompt, "usage: nat %s %s\n", arg->cmd->name,
|
||||
arg->cmd->syntax);
|
||||
}
|
||||
} else
|
||||
|
@ -186,7 +186,7 @@ DecodeCtrlCommand(char *line, char *arg)
|
||||
if (!strncasecmp(line, "include", 7) && issep(line[7])) {
|
||||
end = InterpretArg(line+8, arg);
|
||||
if (*end && *end != '#')
|
||||
log_Printf(LogWARN, "Usage: !include filename\n");
|
||||
log_Printf(LogWARN, "usage: !include filename\n");
|
||||
else
|
||||
return CTRL_INCLUDE;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ int main __P((int, char *argv[]));
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [-a|-d] [-v|-r|-z] [-c count] [-w wait] [interface]\n",
|
||||
fprintf(stderr, "usage: %s [-a|-d] [-v|-r|-z] [-c count] [-w wait] [interface]\n",
|
||||
progname);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ main(argc, argv)
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "Usage: rip6query [-I iface] address\n");
|
||||
fprintf(stderr, "usage: rip6query [-I iface] address\n");
|
||||
}
|
||||
|
||||
/* getnameinfo() is preferred as we may be able to show ifindex as ifname */
|
||||
|
@ -211,7 +211,7 @@ int find_action __P((struct usb_device_info *devinfo,
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [-d] [-v] [-t timeout] [-e] [-f dev]\n"
|
||||
fprintf(stderr, "usage: %s [-d] [-v] [-t timeout] [-e] [-f dev]\n"
|
||||
" [-n] [-c config]\n",
|
||||
__progname);
|
||||
exit(1);
|
||||
|
@ -64,7 +64,7 @@ int main(int, char **);
|
||||
void
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [-a addr] [-d] [-f dev] [-v]\n",
|
||||
fprintf(stderr, "usage: %s [-a addr] [-d] [-f dev] [-v]\n",
|
||||
getprogname());
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user