diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-22 19:42:11 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-22 19:42:11 -0800 |
commit | 91f507d393cd0621536fa837d87e402d9bab9fa2 (patch) | |
tree | 19c3fed69246278c858266be2eae0c4fdf18d7cf /pandoc.hs | |
parent | 9b190ec3db5fd4ee0f27e8bd92c7070debc9b5dd (diff) | |
download | pandoc-91f507d393cd0621536fa837d87e402d9bab9fa2.tar.gz |
`--number-from` implies `--number-sections`.
Diffstat (limited to 'pandoc.hs')
-rw-r--r-- | pandoc.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |