summaryrefslogtreecommitdiffstats
path: root/mmain.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 18:02:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 18:02:36 +0000
commit615c4124c25bfd89a89bc7b14e0fe58520858cb1 (patch)
treecee5dac9bdf6c58e909e7a2179e63627056fd4f6 /mmain.c
parent10f09076dfef711681072061a37b30e05dc2ba8e (diff)
downloadmandoc-615c4124c25bfd89a89bc7b14e0fe58520858cb1.tar.gz
Updated manuals.
Added -fign-scope and -fign-escape.
Diffstat (limited to 'mmain.c')
-rw-r--r--mmain.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mmain.c b/mmain.c
index dc70c37d..8f57a8c1 100644
--- a/mmain.c
+++ b/mmain.c
@@ -71,7 +71,7 @@ void
mmain_usage(const char *help)
{
- warnx("usage: %s %s%s[-v] [-Wwarn...] [infile]", __progname,
+ warnx("usage: %s %s%s[-v] [-foption...] [-Wwarn...] [infile]", __progname,
help ? help : "", help ? " " : "");
}
@@ -198,7 +198,7 @@ mmain_mdoc(struct mmain *p)
/* Allocate the parser. */
- p->mdoc = mdoc_alloc(p, &cb);
+ p->mdoc = mdoc_alloc(p, p->pflags, &cb);
/* Parse the input file. */
@@ -217,14 +217,18 @@ static int
optsopt(struct mmain *p, char *arg)
{
char *v;
- char *toks[] = { "ignore-scope", NULL };
+ char *toks[] = { "ign-scope", "ign-escape", NULL };
while (*arg)
switch (getsubopt(&arg, toks, &v)) {
case (0):
p->pflags |= MDOC_IGN_SCOPE;
break;
+ case (1):
+ p->pflags |= MDOC_IGN_ESCAPE;
+ break;
default:
+ /* FIXME: report? */
return(0);
}
@@ -254,6 +258,7 @@ optswarn(struct mmain *p, char *arg)
p->warn |= MD_WARN_ERR;
break;
default:
+ /* FIXME: report? */
return(0);
}