[cleanup] Misc

Closes #5897
This commit is contained in:
pukkandan 2023-02-17 17:52:22 +05:30
parent 30031be974
commit a538772969
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
26 changed files with 84 additions and 47 deletions

View file

@ -1031,7 +1031,7 @@ def create_parser():
metavar='URL', dest='referer', default=None,
help=optparse.SUPPRESS_HELP)
workarounds.add_option(
'--add-header',
'--add-headers',
metavar='FIELD:VALUE', dest='headers', default={}, type='str',
action='callback', callback=_dict_from_options_callback,
callback_kwargs={'multiple_keys': False},