Improved error if they give wrong arg to --top-level-division.

This commit is contained in:
John MacFarlane 2016-11-03 11:17:10 +01:00
parent 4a99e142ec
commit e6422b1deb

View file

@ -618,7 +618,7 @@ options =
(ReqArg
(\arg opt -> case safeRead (uppercaseFirstLetter arg) of
Just dvsn -> return opt { optTopLevelDivision = dvsn }
_ -> err 76 "could not parse top-level division")
_ -> err 76 "Top-level division must be section, chapter, or part")
"[section|chapter|part]")
"" -- "Use top-level division type in LaTeX, ConTeXt, DocBook"