From 194bdadc57fffc698aedfd43c0cb2aa09e3a75ea Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 21 Jan 2012 09:55:37 -0800 Subject: Improved deprecation warnings for --html5, --offline. --- src/pandoc.hs | 7 ++++--- 1 file 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 -- cgit v1.2.3