fix: Update sample.aider.conf.yml and args_formatter.py

This commit is contained in:
Paul Gauthier 2024-09-11 14:01:10 -07:00 committed by Paul Gauthier (aider)
parent 615dc5fe4b
commit 1603ffa6c2
3 changed files with 71 additions and 55 deletions

View file

@ -144,8 +144,12 @@ class YamlHelpFormatter(argparse.HelpFormatter):
if default:
parts.append(f"#{switch}: {default}\n")
elif action.nargs in ("*", "+") or isinstance(action, argparse._AppendAction):
parts.append(f"#{switch}: xxx")
parts.append(f"## Specify multiple values like this:")
parts.append(f"#{switch}: [xxx,yyyy,zzz]\n")
else:
parts.append(f"#{switch}:\n")
parts.append(f"#{switch}: xxx\n")
###
# parts.append(str(action))