mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
--extra option can use any field
Not just the built-in fields.
This commit is contained in:
parent
f68dc4652a
commit
b33d25a0ad
1 changed files with 2 additions and 5 deletions
|
|
@ -19,7 +19,6 @@ from __future__ import (division, absolute_import, print_function,
|
||||||
|
|
||||||
from beets import plugins
|
from beets import plugins
|
||||||
from beets import util
|
from beets import util
|
||||||
from beets import library
|
|
||||||
from beets import ui
|
from beets import ui
|
||||||
from beets.ui.commands import _do_query
|
from beets.ui.commands import _do_query
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
@ -85,11 +84,9 @@ class EditPlugin(plugins.BeetsPlugin):
|
||||||
)
|
)
|
||||||
edit_command.parser.add_option(
|
edit_command.parser.add_option(
|
||||||
'-e', '--extra',
|
'-e', '--extra',
|
||||||
|
metavar='FIELD',
|
||||||
action='append',
|
action='append',
|
||||||
type='choice',
|
help='edit this field also',
|
||||||
choices=library.Item.all_keys() +
|
|
||||||
library.Album.all_keys(),
|
|
||||||
help='add additional fields to edit',
|
|
||||||
)
|
)
|
||||||
edit_command.parser.add_option(
|
edit_command.parser.add_option(
|
||||||
'--all',
|
'--all',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue