From b33d25a0adf79957a0798fc729a6dedafcb03ece Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 17 Nov 2015 14:39:40 -0800 Subject: [PATCH] --extra option can use any field Not just the built-in fields. --- beetsplug/edit.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/beetsplug/edit.py b/beetsplug/edit.py index 63cdef815..3cd014402 100644 --- a/beetsplug/edit.py +++ b/beetsplug/edit.py @@ -19,7 +19,6 @@ from __future__ import (division, absolute_import, print_function, from beets import plugins from beets import util -from beets import library from beets import ui from beets.ui.commands import _do_query import subprocess @@ -85,11 +84,9 @@ class EditPlugin(plugins.BeetsPlugin): ) edit_command.parser.add_option( '-e', '--extra', + metavar='FIELD', action='append', - type='choice', - choices=library.Item.all_keys() + - library.Album.all_keys(), - help='add additional fields to edit', + help='edit this field also', ) edit_command.parser.add_option( '--all',