App: reverse optInputFiles so they come out in right order in templates.

This commit is contained in:
John MacFarlane 2017-02-25 23:47:19 +01:00
parent 4aed13bf7c
commit 737d954a59

View file

@ -233,7 +233,11 @@ convertWithOpts opts = do
(\vars -> return $ ("outputfile", optOutputFile opts) : vars)
>>=
withList (addStringAsVariable "sourcefile")
(optInputFiles opts)
(reverse $ optInputFiles opts)
-- we reverse this list because, unlike
-- the other option lists here, it is
-- not reversed when parsed from CLI arguments.
-- See withList, above.
>>=
withList (addContentsAsVariable "include-before")
(optIncludeBeforeBody opts)