cli: fix help message formatting
Related: https://pagure.io/koji/issue/2718
This commit is contained in:
parent
a20f7c3c04
commit
b6bdad7d50
2 changed files with 6 additions and 1 deletions
|
|
@ -871,9 +871,10 @@ def handle_resubmit(goptions, session, args):
|
|||
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 @@ class TestCall(utils.CliTestCase):
|
|||
|
||||
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 @@ class TestCall(utils.CliTestCase):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue