Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
output = OutputOrDefault.choose(output_choices,
default=default_output)
if output is default_output:
default_output = None
if output is not None:
generator(covdata, output.value, options)
reports_were_written = True
else:
on_no_output()
if default_output is not None and default_output.value is not None:
logger.warn("--output={!r} option was provided but not used.",
default_output.value)
if options.print_summary:
print_summary(covdata)