Fix default value

This commit is contained in:
Jakub Roztocil 2020-06-16 12:24:03 +02:00
parent 826489950d
commit 2bab69d9fb
2 changed files with 1 additions and 2 deletions

View File

@ -416,6 +416,6 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
def _process_format_options(self):
parsed_options = PARSED_DEFAULT_FORMAT_OPTIONS
for options_group in self.args.format_options:
for options_group in self.args.format_options or []:
parsed_options = parse_format_options(options_group, defaults=parsed_options)
self.args.format_options = parsed_options

View File

@ -242,7 +242,6 @@ output_processing.add_argument(
)
output_processing.add_argument(
'--format-options',
default=[],
action='append',
help="""
Controls output formatting. Only relevant when formatting is enabled