diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-27 17:27:50 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-27 17:27:50 +0000 |
commit | 251cb31839ca20218450f57218e4d7935e6e0652 (patch) | |
tree | 0bc950bf849256933a3bc0f6b496b8b125bfd3c4 /mdocml.c | |
parent | 757654bf3db3f335e31ed99eff0744a5b6d0c5d1 (diff) | |
download | mandoc-251cb31839ca20218450f57218e4d7935e6e0652.tar.gz |
*** empty log message ***
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -58,11 +58,17 @@ main(int argc, char *argv[]) (void)memset(&args, 0, sizeof(struct md_args)); - while (-1 != (c = getopt(argc, argv, "o:"))) + while (-1 != (c = getopt(argc, argv, "o:vW"))) switch (c) { case ('o'): out = optarg; break; + case ('v'): + args.verbosity++; + break; + case ('W'): + args.warnings |= MD_WARN_ALL; + break; default: usage(); return(1); @@ -213,5 +219,5 @@ usage(void) { extern char *__progname; - (void)printf("usage: %s [-o outfile] [infile]\n", __progname); + (void)printf("usage: %s [-vW] [-o outfile] [infile]\n", __progname); } |