From 6b5e4e5a4318ddfd55e28f986afb2e319495184d Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Tue, 4 Jun 2024 10:25:04 -0700 Subject: [PATCH] fix short help --- django_routines/management/commands/routine.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django_routines/management/commands/routine.py b/django_routines/management/commands/routine.py index fdeb413..ba43f13 100644 --- a/django_routines/management/commands/routine.py +++ b/django_routines/management/commands/routine.py @@ -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):