#1623 Extend help message to clarify clone-tag usage
Merged 4 years ago by tkopecek. Opened 4 years ago by breilly.
breilly/koji clone-tag-1509  into  master

@@ -3282,6 +3282,7 @@ 

  def handle_clone_tag(goptions, session, args):

      "[admin] Duplicate the contents of one tag onto another tag"

      usage = _("usage: %prog clone-tag [options] <src-tag> <dst-tag>")

+     usage += _("\nclone-tag will create the destination tag if it does not already exist")

      usage += _("\n(Specify the --help global option for a list of other help options)")

      parser = OptionParser(usage=usage)

      parser.add_option('--config', action='store_true',

@@ -29,6 +29,7 @@ 

              'koji_cli.commands.activate_session').start()

  

          self.error_format = """Usage: %s clone-tag [options] <src-tag> <dst-tag>

+ clone-tag will create the destination tag if it does not already exist

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

  

  %s: error: {message}
@@ -615,6 +616,7 @@ 

          self.assert_help(

              handle_clone_tag,

              """Usage: %s clone-tag [options] <src-tag> <dst-tag>

+ clone-tag will create the destination tag if it does not already exist

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

  

  Options: