Exit after `--dump-user-agent`

Bug in d1b5f70bc9

Closes #3055
pull/2852/head
pukkandan 3 years ago
parent a825ffbffa
commit e880c92c65
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -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)

Loading…
Cancel
Save