From 0065b341b4917be361e8bd94bff6d6853f18cd99 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Jan 06 2020 22:26:14 +0000 Subject: cli: add "--new" option in "grant-permission" help summary Prior to this change, "koji grant-permission -h" showed the "--new" option at the bottom of the output, but not in the summary. This made it easy to visually skip over this option. Update the help text example so users can quickly understand how to use the --new option. --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 5724021..3b398b5 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2189,7 +2189,7 @@ def handle_import_archive(options, session, args): def handle_grant_permission(goptions, session, args): "[admin] Grant a permission to a user" - usage = _("usage: %prog grant-permission [ ...]") + usage = _("usage: %prog grant-permission [--new] [ ...]") parser = OptionParser(usage=get_usage_str(usage)) parser.add_option("--new", action="store_true", help=_("Create a new permission")) (options, args) = parser.parse_args(args)