- -- If there were errors parsing the command-line options,
- -- print them and exit.
- when (not (null errors)) $ do
- hPutStrLn stderr (concat errors)
- putStrLn help_text
- exitWith (ExitFailure exit_args_parse_failed)
+ -- Merge the config file options with the command-line ones,
+ -- prefering the command-line ones.
+ let opt_config = rc_cfg <> cmd_cfg