1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 22:25:19 +00:00

Re-implement deprecated option --id

Despite `--title`, `--literal` etc being deprecated,
`--id` is still documented in youtube-dl and so should be kept
This commit is contained in:
pukkandan
2021-10-22 04:34:22 +05:30
parent f0ded3dad3
commit 19b824f693
3 changed files with 13 additions and 6 deletions

View File

@@ -975,6 +975,9 @@ def parseOpts(overrideArguments=None):
'--no-batch-file',
dest='batchfile', action='store_const', const=None,
help='Do not read URLs from batch file (default)')
filesystem.add_option(
'--id', default=False,
action='store_true', dest='useid', help=optparse.SUPPRESS_HELP)
filesystem.add_option(
'-P', '--paths',
metavar='[TYPES:]PATH', dest='paths', default={}, type='str',