App: reverse optInputFiles so they come out in right order in templates.
This commit is contained in:
parent
4aed13bf7c
commit
737d954a59
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue