From 070e098b48bfed41b703eec7c62c91c82ad66d26 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 9 Oct 2019 17:51:33 -0700 Subject: Make sure that input-files works in --default files. --- src/Text/Pandoc/App/CommandLineOptions.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index 655ccfbac..8ff7c70e3 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -86,7 +86,7 @@ parseOptions options' defaults = do -- thread option data structure through all supplied option actions opts <- foldl (>>=) (return defaults) actions - return (opts{ optInputFiles = map normalizePath args }) + return (opts{ optInputFiles = map normalizePath $ optInputFiles opts ++ args }) latexEngines :: [String] latexEngines = ["pdflatex", "lualatex", "xelatex", "latexmk", "tectonic"] -- cgit v1.2.3