From 98984564d668f72a0db9e7839aa0475ae7f98a66 Mon Sep 17 00:00:00 2001 From: "Your Name (aider)" Date: Sun, 28 Jul 2024 20:24:05 -0300 Subject: [PATCH] Align class docstrings in a column when printing valid formats --- aider/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 294f14f01..a420cdae7 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -61,8 +61,9 @@ class Commands: else: self.io.tool_error(f"Edit format must be one of:") + max_format_length = max(len(format) for format, _ in valid_formats) for format, description in valid_formats: - self.io.tool_error(f"- {format}: {description}") + self.io.tool_error(f"- {format:<{max_format_length}} : {description}") return raise SwitchCoder(edit_format=ef)