aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-03-23 07:08:45 +0100
committerAlbert Krewinkel <[email protected]>2023-03-23 07:08:45 +0100
commitcf8370f4e569c6a53d1115419eae4f3bce989176 (patch)
tree6dcab3d7ee5ac96bc376f8eef050ff851234bd8c
parentfe720dd0c6c3a1b666df3edcdb1c12c89ab3d761 (diff)
T.P.App.CommandLineOptions: don't lowercase arg to `--from`/`--read`
This prevented users to use custom writers with uppercase characters in their filenames. Format-normalization, including lower-casing of format identifiers, happens during format parsing.
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index b0e54c92d..1d3b76cc7 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -235,8 +235,7 @@ options :: [OptDescr (Opt -> ExceptT OptInfo IO Opt)]
options =
[ Option "fr" ["from","read"]
(ReqArg
- (\arg opt -> return opt { optFrom =
- Just (T.toLower $ T.pack arg) })
+ (\arg opt -> return opt { optFrom = Just $ T.pack arg })
"FORMAT")
""