From 5efa4a66a7da408ca300af2012dc48dbab85ff34 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Feb 04 2020 08:15:35 +0000 Subject: PR#1947: fix help message for list-groups Merges #1947 https://pagure.io/koji/pull-request/1947 Fixes: #1189 https://pagure.io/koji/issue/1189 list-groups CLI option --show-blocked help message --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 7949208..dad6ffa 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2580,9 +2580,11 @@ def anon_handle_list_groups(goptions, session, args): usage = _("usage: %prog list-groups [options] []") parser = OptionParser(usage=get_usage_str(usage)) parser.add_option("--event", type='int', metavar="EVENT#", help=_("query at event")) - parser.add_option("--ts", type='int', metavar="TIMESTAMP", help=_("query at last event before timestamp")) + parser.add_option("--ts", type='int', metavar="TIMESTAMP", + help=_("query at last event before timestamp")) parser.add_option("--repo", type='int', metavar="REPO#", help=_("query at event for a repo")) - parser.add_option("--show-blocked", action="store_true", dest="incl_blocked", help=_("Show blocked packages")) + parser.add_option("--show-blocked", action="store_true", dest="incl_blocked", + help=_("Show blocked packages and groups")) (options, args) = parser.parse_args(args) if len(args) < 1 or len(args) > 2: parser.error(_("Incorrect number of arguments")) diff --git a/tests/test_cli/test_list_groups.py b/tests/test_cli/test_list_groups.py index 57cc9f0..75f1345 100644 --- a/tests/test_cli/test_list_groups.py +++ b/tests/test_cli/test_list_groups.py @@ -192,7 +192,7 @@ Options: --event=EVENT# query at event --ts=TIMESTAMP query at last event before timestamp --repo=REPO# query at event for a repo - --show-blocked Show blocked packages + --show-blocked Show blocked packages and groups """ % self.progname)