Skip to content

Commit 9c84cb4

Browse files
author
Erick Sapp
committed
Added fix to shell help.
1 parent 5e6d45f commit 9c84cb4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

SoftLayer/shell/cmd_help.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from SoftLayer.shell import routes
1010

1111

12-
@click.command()
12+
@click.command(short_help="Print shell help text.")
1313
@environment.pass_env
1414
@click.pass_context
1515
def cli(ctx, env):
@@ -22,6 +22,8 @@ def cli(ctx, env):
2222
shell_commands = []
2323
for name in cli_core.cli.list_commands(ctx):
2424
command = cli_core.cli.get_command(ctx, name)
25+
if command.short_help is None:
26+
command.short_help = command.help
2527
details = (name, command.short_help)
2628
if name in dict(routes.ALL_ROUTES):
2729
shell_commands.append(details)

0 commit comments

Comments
 (0)