mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 15:03:22 +01:00
Update plugins.rst
The class is called CommonOptionsParser, Option*s*.
This commit is contained in:
parent
eba9392aa4
commit
09100c4a55
1 changed files with 2 additions and 2 deletions
|
|
@ -87,11 +87,11 @@ The function should use any of the utility functions defined in ``beets.ui``.
|
|||
Try running ``pydoc beets.ui`` to see what's available.
|
||||
|
||||
You can add command-line options to your new command using the ``parser`` member
|
||||
of the ``Subcommand`` class, which is a ``CommonOptionParser`` instance. Just
|
||||
of the ``Subcommand`` class, which is a ``CommonOptionsParser`` instance. Just
|
||||
use it like you would a normal ``OptionParser`` in an independent script. Note
|
||||
that it offers several methods to add common options: ``--album``, ``--path``
|
||||
and ``--format``. This feature is versatile and extensively documented, try
|
||||
``pydoc beets.ui.CommonOptionParser`` for more information.
|
||||
``pydoc beets.ui.CommonOptionsParser`` for more information.
|
||||
|
||||
.. _plugin_events:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue