aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-23 17:41:21 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-23 17:41:21 +0530
commitb8f6bbe68a6ff1f733a8d71d991b03008dfaf621 (patch)
tree383380c9ea6a1dafaf9c94fe945eee3de210ac18 /youtube_dlc/options.py
parent256ed01025536f27bea263e61ff7c8240d8e9fc5 (diff)
downloadhypervideo-pre-b8f6bbe68a6ff1f733a8d71d991b03008dfaf621.tar.lz
hypervideo-pre-b8f6bbe68a6ff1f733a8d71d991b03008dfaf621.tar.xz
hypervideo-pre-b8f6bbe68a6ff1f733a8d71d991b03008dfaf621.zip
Warn when using old style (downloader/postprocessor)_args
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r--youtube_dlc/options.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index cb8e8c06d..7a30882f1 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -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 ":". '