I'm using pytest plugin - pytest-html
The plugin has an option called '--self-contained-html'
. I created my own plugin, that builds on this plugin, and adds another option. I want that, when someone uses my option, the original '--self-contained-html'
will be set to True, even if it wasn't supplied
Basically, I want to change the option from:
parser.add_option(
'--self-contained-html',
action='store_true',
defaut=False,
)
to
parser.add_option(
'--self-contained-html',
action='store_true',
default=<Check_if_parser_option_X_was_given>,
)