mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
fix: quote values with '#' in sample aider.conf.yml config
This commit is contained in:
parent
26d736551d
commit
0da586154d
1 changed files with 4 additions and 1 deletions
|
@ -143,7 +143,10 @@ class YamlHelpFormatter(argparse.HelpFormatter):
|
|||
default = "true"
|
||||
|
||||
if default:
|
||||
parts.append(f"#{switch}: {default}\n")
|
||||
if "#" in default:
|
||||
parts.append(f'#{switch}: "{default}"\n')
|
||||
else:
|
||||
parts.append(f"#{switch}: {default}\n")
|
||||
elif action.nargs in ("*", "+") or isinstance(action, argparse._AppendAction):
|
||||
parts.append(f"#{switch}: xxx")
|
||||
parts.append("## Specify multiple values like this:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue