diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2019-02-28 20:28:16 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2019-02-28 21:50:09 -0800 |
| commit | 77faccb505992c944cd1b92f50e4e00d2927682b (patch) | |
| tree | e9c80f4f48974860378fa3ea9fd33b767625a200 /src/Text/Pandoc/App/CommandLineOptions.hs | |
| parent | 7aeabd8430bce7253d34a9a4baf26bbf71e9869e (diff) | |
Shared: add filterIpynbOutput. [API change]
Add command line option `--ipynb-output=all|none|best`.
Closes #5339.
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
| -rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 12 |
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 |
