version 1.49.2.10, 2013/11/21 01:53:48 |
version 1.49.2.11, 2014/01/05 21:30:57 |
Line 288 static const struct mdoc_handler mdocs[MDOC_MAX] = { |
|
Line 288 static const struct mdoc_handler mdocs[MDOC_MAX] = { |
|
}; |
}; |
|
|
static const char *progname; |
static const char *progname; |
|
static int quick; /* abort the parse early */ |
static int use_all; /* Use all directories and files. */ |
static int use_all; /* Use all directories and files. */ |
static int verb; /* Output verbosity level. */ |
static int verb; /* Output verbosity level. */ |
static int warnings; /* Potential problems in manuals. */ |
static int warnings; /* Potential problems in manuals. */ |
Line 329 main(int argc, char *argv[]) |
|
Line 330 main(int argc, char *argv[]) |
|
op = OP_DEFAULT; |
op = OP_DEFAULT; |
dir = NULL; |
dir = NULL; |
|
|
while (-1 != (ch = getopt(argc, argv, "aC:d:tu:vW"))) |
while (-1 != (ch = getopt(argc, argv, "aC:d:Qtu:vW"))) |
switch (ch) { |
switch (ch) { |
case ('a'): |
case ('a'): |
use_all = 1; |
use_all = 1; |
Line 352 main(int argc, char *argv[]) |
|
Line 353 main(int argc, char *argv[]) |
|
dir = optarg; |
dir = optarg; |
op = OP_UPDATE; |
op = OP_UPDATE; |
break; |
break; |
|
case ('Q'): |
|
quick = 1; |
|
break; |
case ('t'): |
case ('t'): |
dup2(STDOUT_FILENO, STDERR_FILENO); |
dup2(STDOUT_FILENO, STDERR_FILENO); |
if (op) { |
if (op) { |
Line 394 main(int argc, char *argv[]) |
|
Line 398 main(int argc, char *argv[]) |
|
info.lorder = 4321; |
info.lorder = 4321; |
info.flags = R_DUP; |
info.flags = R_DUP; |
|
|
mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL); |
mp = mparse_alloc(MPARSE_AUTO, |
|
MANDOCLEVEL_FATAL, NULL, NULL, quick); |
|
|
memset(&buf, 0, sizeof(struct buf)); |
memset(&buf, 0, sizeof(struct buf)); |
memset(&dbuf, 0, sizeof(struct buf)); |
memset(&dbuf, 0, sizeof(struct buf)); |
|
|
|
|
usage: |
usage: |
fprintf(stderr, |
fprintf(stderr, |
"usage: %s [-avvv] [-C file] | dir ... | -t file ...\n" |
"usage: %s [-aQvvv] [-C file] | dir ... | -t file ...\n" |
" -d dir [file ...] | " |
" -d dir [file ...] | " |
"-u dir [file ...]\n", |
"-u dir [file ...]\n", |
progname); |
progname); |