summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-27 17:27:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-27 17:27:50 +0000
commit251cb31839ca20218450f57218e4d7935e6e0652 (patch)
tree0bc950bf849256933a3bc0f6b496b8b125bfd3c4 /mdocml.c
parent757654bf3db3f335e31ed99eff0744a5b6d0c5d1 (diff)
downloadmandoc-251cb31839ca20218450f57218e4d7935e6e0652.tar.gz
*** empty log message ***
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mdocml.c b/mdocml.c
index e699c4dc..eb71ddb6 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -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);
}