summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App/CommandLineOptions.hs
diff options
context:
space:
mode:
authorElliot Bobrow <77182873+ebobrow@users.noreply.github.com>2022-06-14 16:00:18 -0700
committerGitHub <noreply@github.com>2022-06-14 17:00:18 -0600
commit6ff4972ca9ed194aae36d6a3cdfa90e4050713da (patch)
treed711040fa3d94fd3ff0dc262da9015b646abc51e /src/Text/Pandoc/App/CommandLineOptions.hs
parent7244821705859037c763e1aae9ab35eaa5d9f05e (diff)
add `--embed-resources` flag (#8121)
* Add `--embed-resources` flag for `--self-contained` without implying `--standalone` * Deprecate `--self-contained flag` Closes #7331
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 2db1fe53c..ce6ff4a35 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -439,7 +439,14 @@ options =
, Option "" ["self-contained"]
(NoArg
- (\opt -> return opt { optSelfContained = True }))
+ (\opt -> do
+ deprecatedOption "--self-contained" "use --embed-resources --standalone"
+ return opt { optSelfContained = True }))
+ "" -- "Make slide shows include all the needed js and css (deprecated)"
+
+ , Option "" ["embed-resources"]
+ (NoArg
+ (\opt -> return opt { optEmbedResources = True }))
"" -- "Make slide shows include all the needed js and css"
, Option "" ["request-header"]