From eabf2ac09ff53fbd2588d09a65840199b05f39f1 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Thu, 17 Jul 2025 16:10:24 +0200 Subject: [PATCH] Better help messages in cli --- src/serena/cli.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/serena/cli.py b/src/serena/cli.py index 7b77b2f4..3bfceae2 100644 --- a/src/serena/cli.py +++ b/src/serena/cli.py @@ -86,7 +86,7 @@ class TopLevelCommands(AutoRegisteringGroup): """Root CLI group containing the core Serena commands.""" def __init__(self): - super().__init__(name="serena", help="Serena CLI commands. You can run `subcommand --help` for more info on each command.") + super().__init__(name="serena", help="Serena CLI commands. You can run ` --help` for more info on each command.") @staticmethod @click.command("start-mcp-server", help="Starts the Serena MCP server.") @@ -209,7 +209,7 @@ class ModeCommands(AutoRegisteringGroup): """Group for 'mode' subcommands.""" def __init__(self): - super().__init__(name="mode", help="Manage Serena modes.") + super().__init__(name="mode", help="Manage Serena modes. You can run `mode --help` for more info on each command.") @staticmethod @click.command("list", help="List available modes.") @@ -283,7 +283,9 @@ class ContextCommands(AutoRegisteringGroup): """Group for 'context' subcommands.""" def __init__(self): - super().__init__(name="context", help="Manage Serena contexts.") + super().__init__( + name="context", help="Manage Serena contexts. You can run `context --help` for more info on each command." + ) @staticmethod @click.command("list", help="List available contexts.") @@ -374,7 +376,9 @@ class ProjectCommands(AutoRegisteringGroup): """Group for 'project' subcommands.""" def __init__(self): - super().__init__(name="project", help="Manage Serena projects.") + super().__init__( + name="project", help="Manage Serena projects. You can run `project --help` for more info on each command." + ) @staticmethod @click.command("generate-yml", help="Generate a project.yml file.")