aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App/CommandLineOptions.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 6ae167ebf..be93357cb 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -643,7 +643,17 @@ options =
"NUMBER")
"" -- "Header level at which to split chapters in EPUB"
- , Option "" ["pdf-engine"]
+ , Option "" ["ipynb-output"]
+ (ReqArg
+ (\arg opt ->
+ if arg `notElem` ["all","none","best"]
+ then E.throwIO $ PandocOptionError $
+ "ipynb-output must be all, none, or best"
+ else return opt { optIpynbOutput = arg })
+ "all|none|best")
+ "" -- "Starting number for sections, subsections, etc."
+
+ , Option "" ["pdf-engine"]
(ReqArg
(\arg opt -> do
let b = takeBaseName arg