diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-10-11 08:57:34 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-10-11 08:57:34 -0700 |
commit | 8a64bd0abf447bf870fc8724ac0c1f2079aa6d7e (patch) | |
tree | 90d7599cbffdccc6c71306b47f194ddd7c2493e9 /src/Text/Pandoc | |
parent | c468951d8ef95112068ba16ee1651c8393b9d72f (diff) | |
download | pandoc-8a64bd0abf447bf870fc8724ac0c1f2079aa6d7e.tar.gz |
Allow output-file to be null in --defaults.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/App/Opt.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs index d14365e85..4c08e3074 100644 --- a/src/Text/Pandoc/App/Opt.hs +++ b/src/Text/Pandoc/App/Opt.hs @@ -188,7 +188,7 @@ doOpt opt (k',v) = do <|> (parseYAML v >>= \x -> return opt { optMetadataFiles = [unpack x] }) "output-file" -> - parseYAML v >>= \x -> return opt { optOutputFile = Just $ unpack x } + parseYAML v >>= \x -> return opt { optOutputFile = unpack <$> x } "input-files" -> parseYAML v >>= \x -> return opt { optInputFiles = map unpack x } "number-sections" -> |