diff --git a/plugins/labels.py b/plugins/labels.py index bb5b1a6..4241388 100644 --- a/plugins/labels.py +++ b/plugins/labels.py @@ -68,8 +68,7 @@ def modify_labels(lib, opts, args): action = args[0] if action not in action_map: - print_("%s is not a valid action. " % action) - print_("Valid actions are: add, remove, removeall, show, transfer, edit") + print_("%s is not a valid action. Run 'beet labels --help' for usage." % action) return actnum = action_map[action] @@ -297,7 +296,21 @@ def edit_labels(lib, opts, args): print_(f"Updated {len(changes)} item(s).") -labels_command = Subcommand('labels', help='Add or remove labels') +labels_command = Subcommand( + 'labels', + help='Add, remove, or inspect labels on library items', + usage='%prog labels [args] [query]', +) +labels_command.parser.usage = """%prog labels [args] [query] + +Actions: + add