mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Align class docstrings in a column when printing valid formats
This commit is contained in:
parent
8c3fe1650b
commit
98984564d6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue