Improved deprecation warnings for --html5, --offline.

This commit is contained in:
John MacFarlane
2012-01-21 09:55:37 -08:00
parent 09b7ae4073
commit 194bdadc57
+4 -3
View File
@@ -257,7 +257,7 @@ options =
, Option "5" ["html5"]
(NoArg
(\opt -> do
warn $ "pandoc: --html5 is deprecated. "
warn $ "--html5 is deprecated. "
++ "Use the html5 output format instead."
return opt { optHtml5 = True }))
"" -- "Produce HTML5 in HTML output"
@@ -345,8 +345,9 @@ options =
, Option "" ["offline"]
(NoArg
(\opt -> return opt { optSelfContained = True,
optStandalone = True }))
(\opt -> do warn $ "--offline is deprecated. Use --self-contained instead."
return opt { optSelfContained = True,
optStandalone = True }))
"" -- "Make slide shows include all the needed js and css"
-- deprecated synonym for --self-contained