forked from extern/httpie-cli
Fix default value
This commit is contained in:
parent
826489950d
commit
2bab69d9fb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user