summaryrefslogtreecommitdiffstatshomepage
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 14:42:45 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 14:42:45 +0000
commit142d3c43402e6904480a35ff0f970621b9a5f700 (patch)
treeed3f245886c31c82d7484319d9056bd43722d1f8 /mdocml.c
parentd49b74004ed6d2134c947f8d4f978ab2c1de3a1d (diff)
downloadmandoc-142d3c43402e6904480a35ff0f970621b9a5f700.tar.gz
mandoc-142d3c43402e6904480a35ff0f970621b9a5f700.tar.zst
mandoc-142d3c43402e6904480a35ff0f970621b9a5f700.zip
Made noop the default filter.
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdocml.c b/mdocml.c
index d255d07e..3198b4b6 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -1,4 +1,4 @@
-/* $Id: mdocml.c,v 1.19 2008/12/09 17:09:12 kristaps Exp $ */
+/* $Id: mdocml.c,v 1.20 2008/12/10 14:42:46 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -71,7 +71,7 @@ main(int argc, char *argv[])
(void)memset(&args, 0, sizeof(struct md_args));
- args.type = MD_XML;
+ args.type = MD_NOOP;
while (-1 != (c = getopt(argc, argv, "c:ef:o:vW:")))
switch (c) {
@@ -90,6 +90,8 @@ main(int argc, char *argv[])
args.type = MD_HTML;
else if (0 == strcmp(optarg, "xml"))
args.type = MD_XML;
+ else if (0 == strcmp(optarg, "noop"))
+ args.type = MD_NOOP;
else
errx(1, "invalid filter type");
break;