version 1.189, 2014/09/01 22:45:53 |
version 1.190, 2014/09/03 05:22:45 |
Line 154 main(int argc, char *argv[]) |
|
Line 154 main(int argc, char *argv[]) |
|
show_usage = 0; |
show_usage = 0; |
outmode = OUTMODE_DEF; |
outmode = OUTMODE_DEF; |
|
|
while (-1 != (c = getopt(argc, argv, "aC:cfI:iklM:m:O:S:s:T:VW:w"))) { |
while (-1 != (c = getopt(argc, argv, "aC:cfhI:iklM:m:O:S:s:T:VW:w"))) { |
switch (c) { |
switch (c) { |
case 'a': |
case 'a': |
outmode = OUTMODE_ALL; |
outmode = OUTMODE_ALL; |
Line 168 main(int argc, char *argv[]) |
|
Line 168 main(int argc, char *argv[]) |
|
case 'f': |
case 'f': |
search.argmode = ARG_WORD; |
search.argmode = ARG_WORD; |
break; |
break; |
|
case 'h': |
|
(void)strlcat(curp.outopts, "synopsis,", BUFSIZ); |
|
outmode = OUTMODE_ALL; |
|
break; |
case 'I': |
case 'I': |
if (strncmp(optarg, "os=", 3)) { |
if (strncmp(optarg, "os=", 3)) { |
fprintf(stderr, |
fprintf(stderr, |
Line 414 usage(enum argmode argmode) |
|
Line 418 usage(enum argmode argmode) |
|
|
|
switch (argmode) { |
switch (argmode) { |
case ARG_FILE: |
case ARG_FILE: |
fputs("usage: mandoc [-acfklV] [-Ios=name] " |
fputs("usage: mandoc [-acfhklV] [-Ios=name] " |
"[-mformat] [-Ooption] [-Toutput] [-Wlevel]\n" |
"[-mformat] [-Ooption] [-Toutput] [-Wlevel]\n" |
"\t [file ...]\n", stderr); |
"\t [file ...]\n", stderr); |
break; |
break; |
Line 424 usage(enum argmode argmode) |
|
Line 428 usage(enum argmode argmode) |
|
"\t [section] name ...\n", stderr); |
"\t [section] name ...\n", stderr); |
break; |
break; |
case ARG_WORD: |
case ARG_WORD: |
fputs("usage: whatis [-acfklVw] [-C file] " |
fputs("usage: whatis [-acfhklVw] [-C file] " |
"[-M path] [-m path] [-O outkey] [-S arch]\n" |
"[-M path] [-m path] [-O outkey] [-S arch]\n" |
"\t [-s section] name ...\n", stderr); |
"\t [-s section] name ...\n", stderr); |
break; |
break; |
case ARG_EXPR: |
case ARG_EXPR: |
fputs("usage: apropos [-acfklVw] [-C file] " |
fputs("usage: apropos [-acfhklVw] [-C file] " |
"[-M path] [-m path] [-O outkey] [-S arch]\n" |
"[-M path] [-m path] [-O outkey] [-S arch]\n" |
"\t [-s section] expression ...\n", stderr); |
"\t [-s section] expression ...\n", stderr); |
break; |
break; |