aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-10-09 17:51:33 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-10-09 17:51:33 -0700
commit070e098b48bfed41b703eec7c62c91c82ad66d26 (patch)
tree2fcc95f9e2d5aec693daa8b487cb42a68a18dac8 /src
parenta3729ef2da06aca1799bdd57ada12f47c04b93e2 (diff)
downloadpandoc-070e098b48bfed41b703eec7c62c91c82ad66d26.tar.gz
Make sure that input-files works in --default files.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs2
1 files changed, 1 insertions, 1 deletions
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"]