#1918 cli: add "--new" option in "grant-permission" help summary
Merged 2 years ago by tkopecek. Opened 2 years ago by ktdreyer.
ktdreyer/koji help-grant-permission  into  master

file modified
+1 -1
@@ -2189,7 +2189,7 @@ 

  

  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)

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.

Metadata Update from @tkopecek:
- Pull-request tagged with: doc, no_qe

2 years ago

Commit 4a9b2e2 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago
Metadata