#1946 fix usage message for add-pkg
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue1212  into  master

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

  

  def handle_add_pkg(goptions, session, args):

      "[admin] Add a package to the listing for tag"

-     usage = _("usage: %prog add-pkg [options] <tag> <package> [<package> ...]")

+     usage = _("usage: %prog add-pkg [options] --owner <owner> <tag> <package> [<package> ...]")

      parser = OptionParser(usage=get_usage_str(usage))

      parser.add_option("--force", action='store_true', help=_("Override blocks if necessary"))

      parser.add_option("--owner", help=_("Specify owner"))

@@ -202,7 +202,7 @@ 

          actual_stdout = stdout.getvalue()

          actual_stderr = stderr.getvalue()

          expected_stdout = ''

-         expected_stderr = """Usage: %s add-pkg [options] <tag> <package> [<package> ...]

+         expected_stderr = """Usage: %s add-pkg [options] --owner <owner> <tag> <package> [<package> ...]

  (Specify the --help global option for a list of other help options)

  

  %s: error: Please specify an owner for the package(s)
@@ -239,7 +239,7 @@ 

          actual_stdout = stdout.getvalue()

          actual_stderr = stderr.getvalue()

          expected_stdout = ''

-         expected_stderr = """Usage: %s add-pkg [options] <tag> <package> [<package> ...]

+         expected_stderr = """Usage: %s add-pkg [options] --owner <owner> <tag> <package> [<package> ...]

  (Specify the --help global option for a list of other help options)

  

  %s: error: Please specify a tag and at least one package

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

2 years ago

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

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago

Commit e60252c fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago