diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-21 09:55:37 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-21 09:55:37 -0800 |
commit | 194bdadc57fffc698aedfd43c0cb2aa09e3a75ea (patch) | |
tree | 0846a857b7f2c4bc7f1aa3ebf71d0dde5c8f4002 /src | |
parent | 09b7ae4073bd9ed2f15d69a36feb1bf65221722f (diff) | |
download | pandoc-194bdadc57fffc698aedfd43c0cb2aa09e3a75ea.tar.gz |
Improved deprecation warnings for --html5, --offline.
Diffstat (limited to 'src')
-rw-r--r-- | src/pandoc.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs index bff98141d..6eac02ee2 100644 --- a/src/pandoc.hs +++ b/src/pandoc.hs @@ -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 |