From 91f507d393cd0621536fa837d87e402d9bab9fa2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 22 Feb 2013 19:42:11 -0800 Subject: `--number-from` implies `--number-sections`. --- pandoc.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandoc.hs b/pandoc.hs index 1c984f681..2c904984d 100644 --- a/pandoc.hs +++ b/pandoc.hs @@ -473,7 +473,8 @@ options = (ReqArg (\arg opt -> case safeRead arg of - Just n -> return opt { optNumberFrom = n } + Just n -> return opt { optNumberFrom = n, + optNumberSections = True } _ -> err 57 "could not parse number-from") "NUMBER") "" -- "Starting number for sections" -- cgit v1.2.3