Raise exception when bad output format is given

While argparse handles the case where it's specified as an arugment,
we need to validate the case when output is specified as an env var
and a config var.
Merge branch 'bad-output-type' into develop

* bad-output-type:
  Raise exception when bad output format is given