changed --disable-plugin to --disable-plugins

This commit is contained in:
arbanhossain 2022-04-17 11:12:27 +06:00
parent 6be2617eb1
commit 73554acfb0
3 changed files with 5 additions and 6 deletions

View file

@ -1131,7 +1131,7 @@ def _load_plugins(options, config):
# Exclude any plugins that were specified on the command line
if options.exclude is not None:
plugin_list = [p for p in plugin_list
if p not in options.exclude.split(',')]
if p not in options.exclude.split(',')]
plugins.load_plugins(plugin_list)
return plugins
@ -1266,7 +1266,7 @@ def _raw_main(args, lib=None):
help='path to configuration file')
parser.add_option('-p', '--plugins', dest='plugins',
help='a comma-separated list of plugins to load')
parser.add_option('-P', '--disable-plugin', dest='exclude',
parser.add_option('-P', '--disable-plugins', dest='exclude',
help='a comma-separated list of plugins to disable')
parser.add_option('-h', '--help', dest='help', action='store_true',
help='show this help message and exit')

View file

@ -20,7 +20,7 @@ New features:
* :doc:`/plugins/convert`: Add a new `auto_keep` option that automatically
converts files but keeps the *originals* in the library.
:bug:`1840` :bug:`4302`
* Added a ``-P`` (or ``--disable-plugin``) flag to specify one/multiple plugin(s) to be
* Added a ``-P`` (or ``--disable-plugins``) flag to specify one/multiple plugin(s) to be
disabled at startup.
Bug fixes:

View file

@ -445,9 +445,8 @@ import ...``.
specified, the plugin list in your configuration is ignored. The long form
of this argument also allows specifying no plugins, effectively disabling
all plugins: ``--plugins=``.
* ``-P EXCLUDE``: specify a comma-separated list of plugins to disable in a
specific beets run. If specified, it will exclude plugins from your configuration
and/or plugins specified using the ``-p`` flag. To disable ALL plugins, use
* ``-P plugins``: specify a comma-separated list of plugins to disable in a
specific beets run. This will overwrite ``-p`` if used with it . To disable all plugins, use
``--plugins=`` instead.
Beets also uses the ``BEETSDIR`` environment variable to look for