@@ -115,7 +115,7 @@ data Opt = Opt
115115 , optEpubMetadata :: String -- ^ EPUB metadata
116116 , optEpubFonts :: [FilePath] -- ^ EPUB fonts to embed
117117 , optEpubChapterLevel :: Int -- ^ Header level at which to split chapters
118− , optTOCLevel :: Int -- ^ Number of levels to include in TOC
118+ , optTOCDepth :: Int -- ^ Number of levels to include in TOC
119119 , optDumpArgs :: Bool -- ^ Output command-line arguments
120120 , optIgnoreArgs :: Bool -- ^ Ignore command-line arguments
121121 , optReferenceLinks :: Bool -- ^ Use reference links in writing markdown, rst
@@ -169,7 +169,7 @@ defaultOpts = Opt
169169 , optEpubMetadata = ""
170170 , optEpubFonts = []
171171 , optEpubChapterLevel = 1
172− , optTOCLevel = 3
172+ , optTOCDepth = 3
173173 , optDumpArgs = False
174174 , optIgnoreArgs = False
175175 , optReferenceLinks = False
@@ -340,12 +340,12 @@ options =
340340 (\opt -> return opt { optTableOfContents = True }))
341341 "" -- "Include table of contents"
342342
343− , Option "" ["toc-level"]
343+ , Option "" ["toc-depth"]
344344 (ReqArg
345345 (\arg opt -> do
346346 case safeRead arg of
347347 Just t | t >= 1 && t <= 6 ->
348− return opt { optTOCLevel = t,
348+ return opt { optTOCDepth = t,
349349 optTableOfContents = True }
350350 _ -> err 57 $
351351 "TOC level must be a number between 1 and 6")
@@ -831,7 +831,7 @@ main = do
831831 , optEpubMetadata = epubMetadata
832832 , optEpubFonts = epubFonts
833833 , optEpubChapterLevel = epubChapterLevel
834− , optTOCLevel = epubTOCLevel
834+ , optTOCDepth = epubTOCDepth
835835 , optDumpArgs = dumpArgs
836836 , optIgnoreArgs = ignoreArgs
837837 , optReferenceLinks = referenceLinks
@@ -1022,7 +1022,7 @@ main = do
10221022 writerEpubStylesheet = epubStylesheet,
10231023 writerEpubFonts = epubFonts,
10241024 writerEpubChapterLevel = epubChapterLevel,
1025− writerTOCLevel = epubTOCLevel,
1025+ writerTOCDepth = epubTOCDepth,
10261026 writerReferenceODT = referenceODT,
10271027 writerReferenceDocx = referenceDocx
10281028 }