From c6b79d794eb25cb11777d2b720ce01595c780de1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 11 Dec 2010 00:22:34 -0800 Subject: Removed deprecated -C/--custom-header option. Use --template instead. --- src/pandoc.hs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src') diff --git a/src/pandoc.hs b/src/pandoc.hs index 52dfb731a..daad7d43c 100644 --- a/src/pandoc.hs +++ b/src/pandoc.hs @@ -409,16 +409,6 @@ options = "FILENAME") "" -- "File to include after document body" - , Option "C" ["custom-header"] - (ReqArg - (\arg opt -> do - text <- UTF8.readFile arg - let newVars = ("legacy-header", text) : optVariables opt - return opt { optVariables = newVars - , optStandalone = True }) - "FILENAME") - "" -- "File to use for custom header (implies -s)" - , Option "T" ["title-prefix"] (ReqArg (\arg opt -> do @@ -635,13 +625,6 @@ main = do mapM_ (\arg -> UTF8.hPutStrLn stdout arg) args exitWith ExitSuccess - -- warn about deprecated options - case lookup "legacy-header" variables of - Just _ -> UTF8.hPutStrLn stderr $ - "Warning: The -C/--custom-header is deprecated.\n" ++ - "Please transition to using --template instead." - Nothing -> return () - let sources = if ignoreArgs then [] else args datadir <- case mbDataDir of -- cgit v1.2.3