aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 06b65e0ea..91c2635a7 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -398,7 +398,7 @@ def create_parser():
'(Alias: --no-config)'))
general.add_option(
'--no-config-locations',
- action='store_const', dest='config_locations', const=[],
+ action='store_const', dest='config_locations', const=None,
help=(
'Do not load any custom configuration files (default). When given inside a '
'configuration file, ignore all previous --config-locations defined in the current file'))
@@ -410,12 +410,21 @@ def create_parser():
'("-" for stdin). Can be used multiple times and inside other configuration files'))
general.add_option(
'--plugin-dirs',
- dest='plugin_dirs', metavar='PATH', action='append',
+ metavar='PATH',
+ dest='plugin_dirs',
+ action='callback',
+ callback=_list_from_options_callback,
+ type='str',
+ callback_kwargs={'delim': None},
+ default=['default'],
help=(
'Path to an additional directory to search for plugins. '
'This option can be used multiple times to add multiple directories. '
- 'Note that this currently only works for extractor plugins; '
- 'postprocessor plugins can only be loaded from the default plugin directories'))
+ 'Use "default" to search the default plugin directories (default)'))
+ general.add_option(
+ '--no-plugin-dirs',
+ dest='plugin_dirs', action='store_const', const=[],
+ help='Clear plugin directories to search, including defaults and those provided by previous --plugin-dirs')
general.add_option(
'--flat-playlist',
action='store_const', dest='extract_flat', const='in_playlist', default=False,