#2738 cli: fix help message formatting
Merged 3 years ago by tkopecek. Opened 3 years ago by tkopecek.
tkopecek/koji issue2718a  into  master

file modified
+2 -1
@@ -871,9 +871,10 @@ 

  def handle_call(goptions, session, args):

      "Execute an arbitrary XML-RPC call"

      usage = _("""\

-         usage: %prog call [options] <name> [<arg> ...]")

+         usage: %prog call [options] <name> [<arg> ...]

  

          Note, that you can use global option --noauth for anonymous calls here""")

+     usage = textwrap.dedent(usage)

      parser = OptionParser(usage=get_usage_str(usage))

      parser.add_option("--python", action="store_true", help=_("Use python syntax for values"))

      parser.add_option("--kwargs",

@@ -15,6 +15,8 @@ 

  

      def setUp(self):

          self.error_format = """Usage: %s call [options] <name> [<arg> ...]

+ 

+ Note, that you can use global option --noauth for anonymous calls here

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

  

  %s: error: {message}
@@ -130,6 +132,8 @@ 

          self.assert_help(

              handle_call,

              """Usage: %s call [options] <name> [<arg> ...]

+ 

+ Note, that you can use global option --noauth for anonymous calls here

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

  

  Options:

Commit c23e808 fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago