1
0
Fork 0

[cleanup] Refactor __init__.py (#2570)

* Split `__init__` code into multiple functions
* Clean up validation code by grouping similar types of options
* Expose `parse_options` to third parties
This commit is contained in:
pukkandan 2022-03-09 01:33:31 +05:30 committed by GitHub
commit d1b5f70bc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 414 additions and 395 deletions

View file

@ -1182,7 +1182,7 @@ def create_parser():
help='Do not write video description (default)')
filesystem.add_option(
'--write-info-json',
action='store_true', dest='writeinfojson', default=False,
action='store_true', dest='writeinfojson', default=None,
help='Write video metadata to a .info.json file (this may contain personal information)')
filesystem.add_option(
'--no-write-info-json',