diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-10 14:42:45 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-10 14:42:45 +0000 |
commit | 142d3c43402e6904480a35ff0f970621b9a5f700 (patch) | |
tree | ed3f245886c31c82d7484319d9056bd43722d1f8 /mdocml.c | |
parent | d49b74004ed6d2134c947f8d4f978ab2c1de3a1d (diff) | |
download | mandoc-142d3c43402e6904480a35ff0f970621b9a5f700.tar.gz mandoc-142d3c43402e6904480a35ff0f970621b9a5f700.tar.zst mandoc-142d3c43402e6904480a35ff0f970621b9a5f700.zip |
Made noop the default filter.
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |