mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
Update docs & changelog
This commit is contained in:
parent
7798a521b5
commit
6fda0e23fc
2 changed files with 11 additions and 2 deletions
|
|
@ -6,6 +6,9 @@ Changelog
|
|||
|
||||
Features:
|
||||
|
||||
* Beets now accept top-level options ``--format-item`` and ``--format-album``
|
||||
before any subcommand to control how items and albums are displayed.
|
||||
:bug:`1271`:
|
||||
* There are now multiple levels of verbosity. On the command line, you can
|
||||
make beets somewhat verbose with ``-v`` or very verbose with ``-vv``.
|
||||
:bug:`1244`
|
||||
|
|
@ -120,6 +123,9 @@ Fixes:
|
|||
|
||||
For developers:
|
||||
|
||||
* the ``OptionParser`` is now a ``CommonOptionsParser`` that offers facilities
|
||||
for adding usual options (``--album``, ``--path`` and ``--format``). See
|
||||
:ref:`add_subcommands`. :bug:`1271`
|
||||
* The logging system in beets has been overhauled. Plugins now each have their
|
||||
own logger, which helps by automatically adjusting the verbosity level in
|
||||
import mode and by prefixing the plugin's name. Logging levels are
|
||||
|
|
|
|||
|
|
@ -87,8 +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 an ``OptionParser`` instance. Just use it
|
||||
like you would a normal ``OptionParser`` in an independent script.
|
||||
of the ``Subcommand`` class, which is a ``CommonOptionParser`` 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.
|
||||
|
||||
.. _plugin_events:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue