Commit 9122aacb authored by Henri Payno's avatar Henri Payno
Browse files

[app] add more spaces to after command name

parent a8909d7f
......@@ -160,6 +160,29 @@ class Launcher(_Launcher):
)
super().execute(argv=argv)
def print_help(self):
"""Print the help to stdout."""
usage = self.usage
if usage is None:
usage = "usage: {0.prog} [--version|--help] <command> [<args>]"
description = self.description
epilog = self.epilog
if epilog is None:
epilog = "See '{0.prog} help <command>' to read about a specific subcommand"
print(usage.format(self))
print("")
if description is not None:
print(description)
print("")
print("The {0.prog} commands are:".format(self))
commands = sorted(self._commands.keys())
for command in commands:
command = self._commands[command]
print(" {:15} {:s}".format(command.name, command.description))
print("")
print(epilog.format(self))
def main():
"""Main function of the launcher
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment