aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/App')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 848f9fba5..7692cfac9 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -436,16 +436,14 @@ options =
, Option "F" ["filter"]
(ReqArg
(\arg opt -> return opt { optFilters =
- JSONFilter (normalizePath arg) :
- optFilters opt })
+ optFilters opt ++ [JSONFilter (normalizePath arg)] })
"PROGRAM")
"" -- "External JSON filter"
, Option "L" ["lua-filter"]
(ReqArg
(\arg opt -> return opt { optFilters =
- LuaFilter (normalizePath arg) :
- optFilters opt })
+ optFilters opt ++ [LuaFilter (normalizePath arg)] })
"SCRIPTPATH")
"" -- "Lua filter"