Skip to content

Commit

Permalink
fix short help
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Jun 4, 2024
1 parent 5ccb40c commit 6b5e4e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_routines/management/commands/routine.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def _list(self) -> None:
cmd_strings = "\n".join(command_strings)
cmd_strings = f"{'[bright]' if use_rich else ''}{cmd_strings}{'[/bright]' if use_rich else ''}"
help_txt = f"\b\n{routine.help_text}\n{ruler}\b\n\n{cmd_strings}\n"
grp = Command.group(help=help_txt, invoke_without_command=True)(locals()[name])
grp = Command.group(
help=help_txt, short_help=routine.help_text, invoke_without_command=True
)(locals()[name])

@grp.command(name="list", help=_("List the commands that will be run."))
def list(self):
Expand Down

0 comments on commit 6b5e4e5

Please sign in to comment.