mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
--extra/-e is now --field/-f
This commit is contained in:
parent
b33d25a0ad
commit
775a48eb28
2 changed files with 3 additions and 3 deletions
|
|
@ -83,7 +83,7 @@ class EditPlugin(plugins.BeetsPlugin):
|
|||
help='interactively edit metadata'
|
||||
)
|
||||
edit_command.parser.add_option(
|
||||
'-e', '--extra',
|
||||
'-f', '--field',
|
||||
metavar='FIELD',
|
||||
action='append',
|
||||
help='edit this field also',
|
||||
|
|
@ -112,7 +112,7 @@ class EditPlugin(plugins.BeetsPlugin):
|
|||
if opts.all:
|
||||
fields = None
|
||||
else:
|
||||
fields = self._get_fields(opts.album, opts.extra)
|
||||
fields = self._get_fields(opts.album, opts.field)
|
||||
self.edit(opts.album, objs, fields)
|
||||
|
||||
def _get_fields(self, album, extra):
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Command-Line Options
|
|||
The ``edit`` command has these command-line options:
|
||||
|
||||
- ``-a`` or ``--album``: Edit albums instead of individual items.
|
||||
- ``-e FIELD`` or ``--extra FIELD``: Specify an additional field to edit
|
||||
- ``-f FIELD`` or ``--field FIELD``: Specify an additional field to edit
|
||||
(in addition to the defaults set in the configuration).
|
||||
- ``--all``: Edit *all* available fields.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue