[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:
parent
1eae7f94c1
commit
d1b5f70bc9
4 changed files with 414 additions and 395 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue