mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 09:54:31 +01:00
Replace varargs_callback in duplicates
Now you just use `-k KEY1 -k KEY2`, which seems more natural to me anyway.
This commit is contained in:
parent
b779917043
commit
d00c0fb5cf
1 changed files with 4 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ from __future__ import division, absolute_import, print_function
|
|||
import shlex
|
||||
|
||||
from beets.plugins import BeetsPlugin
|
||||
from beets.ui import decargs, print_, vararg_callback, Subcommand, UserError
|
||||
from beets.ui import decargs, print_, Subcommand, UserError
|
||||
from beets.util import command_output, displayable_path, subprocess
|
||||
from beets.library import Item, Album
|
||||
import six
|
||||
|
|
@ -80,10 +80,9 @@ class DuplicatesPlugin(BeetsPlugin):
|
|||
help=u'report duplicates only if all attributes are set',
|
||||
)
|
||||
self._command.parser.add_option(
|
||||
u'-k', u'--keys', dest='keys',
|
||||
action='callback', metavar='KEY1 KEY2',
|
||||
callback=vararg_callback,
|
||||
help=u'report duplicates based on keys',
|
||||
u'-k', u'--key',
|
||||
action='append', metavar='KEY',
|
||||
help=u'report duplicates based on keys (use multiple times)',
|
||||
)
|
||||
self._command.parser.add_option(
|
||||
u'-M', u'--merge', dest='merge',
|
||||
|
|
|
|||
Loading…
Reference in a new issue