1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-03 23:43:21 -04:00

Warn when using old style (downloader/postprocessor)_args

This commit is contained in:
pukkandan
2021-01-23 17:41:21 +05:30
parent 256ed01025
commit b8f6bbe68a
2 changed files with 8 additions and 1 deletions

View File

@@ -640,7 +640,9 @@ def parseOpts(overrideArguments=None):
'--downloader-args', '--external-downloader-args',
metavar='NAME:ARGS', dest='external_downloader_args', default={}, type='str',
action='callback', callback=_dict_from_multiple_values_options_callback,
callback_kwargs={'default_key': 'default', 'process': compat_shlex_split},
callback_kwargs={
'allowed_keys': '|'.join(list_external_downloaders()),
'default_key': 'default', 'process': compat_shlex_split},
help=(
'Give these arguments to the external downloader. '
'Specify the downloader name and the arguments separated by a colon ":". '