style(cli): align help output at column 5 and title the dl panel Services

This commit is contained in:
imSp4rky
2026-08-24 13:28:56 -06:00
parent 0a68cc2452
commit d9d6115054
2 changed files with 16 additions and 2 deletions
+8 -1
View File
@@ -127,8 +127,15 @@ class Services(click.Group):
remote_services_cache: list[dict] | None = None
def format_help(self, ctx: click.Context, formatter: click.HelpFormatter) -> None:
"""Name the commands panel ``Services``, because this group's commands are services."""
config = getattr(formatter, "config", None)
if config is not None:
config.commands_panel_title = "Services"
super().format_help(ctx, formatter)
def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
"""Preprocess --slow so it can take an optional range value before Click parses args."""
"""Preprocess ``--slow`` so it can take an optional range value before Click parses the arguments."""
processed = []
i = 0
while i < len(args):