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.
This commit is contained in:
Ken Dreyer 2020-01-06 15:20:30 -07:00
parent eb3a8360f7
commit 0065b341b4

View file

@ -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 <permission> <user> [<user> ...]")
usage = _("usage: %prog grant-permission [--new] <permission> <user> [<user> ...]")
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)