From ff1df241a9fcacec8c897cc0f01f691ee5b49a22 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 9 Oct 2019 21:54:41 -0700 Subject: T.P.App.Opt: rename optReader, optWriter as optFrom, optTo. This will allow to: and from: in defaults. --- src/Text/Pandoc/App/CommandLineOptions.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs') diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index 8ff7c70e3..e23452b3b 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -131,14 +131,14 @@ options = , Option "fr" ["from","read"] (ReqArg - (\arg opt -> return opt { optReader = + (\arg opt -> return opt { optFrom = Just (map toLower arg) }) "FORMAT") "" , Option "tw" ["to","write"] (ReqArg - (\arg opt -> return opt { optWriter = Just arg }) + (\arg opt -> return opt { optTo = Just arg }) "FORMAT") "" -- cgit v1.2.3