Exit after --dump-user-agent

Bug in d1b5f70bc9

Closes #3055
This commit is contained in:
pukkandan 2022-03-13 14:38:06 +05:30
parent a825ffbffa
commit e880c92c65
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -822,6 +822,7 @@ def _real_main(argv=None):
if opts.dump_user_agent:
ua = traverse_obj(opts.headers, 'User-Agent', casesense=False, default=std_headers['User-Agent'])
write_string(f'{ua}\n', out=sys.stdout)
sys.exit(0)
if print_extractor_information(opts, all_urls):
sys.exit(0)