From 114a6f80da4d0c71f556dbeb602ba27238dd3acb Mon Sep 17 00:00:00 2001 From: Jonas Wagner Date: Fri, 22 Sep 2017 13:44:59 +0200 Subject: [PATCH] Fix the --key option in the `duplicates` plugin. During a refactoring, the "dest='keys'" parameter was lost. This caused the option to not have any effect. --- beetsplug/duplicates.py | 2 +- docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py index f63a7be20..2584e6628 100644 --- a/beetsplug/duplicates.py +++ b/beetsplug/duplicates.py @@ -81,7 +81,7 @@ class DuplicatesPlugin(BeetsPlugin): help=u'report duplicates only if all attributes are set', ) self._command.parser.add_option( - u'-k', u'--key', + u'-k', u'--key', dest='keys', action='append', metavar='KEY', help=u'report duplicates based on keys (use multiple times)', ) diff --git a/docs/changelog.rst b/docs/changelog.rst index 3574060d2..860f58256 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -45,6 +45,8 @@ Fixes: Python 3 on Windows with non-ASCII filenames. :bug:`2671` * :doc:`/plugins/absubmit`: Fix an occasional crash on Python 3 when the AB analysis tool produced non-ASCII metadata. :bug:`2673` +* :doc:`/plugins/duplicates`: Fix the `--key` command line option, which was + ignored. For developers: