feat: Add line endings configuration option for file writing

This commit is contained in:
Titusz Pan 2025-01-13 17:51:02 +01:00 committed by Titusz Pan (aider)
parent ac26fc6d5f
commit c3952cb985
No known key found for this signature in database
GPG key ID: 4793D770C7B5E1D4
3 changed files with 11 additions and 1 deletions

View file

@ -766,6 +766,12 @@ def get_parser(default_config_files, git_root):
default="utf-8",
help="Specify the encoding for input and output (default: utf-8)",
)
group.add_argument(
"--line-endings",
choices=["platform", "lf", "crlf"],
default="platform",
help="Line endings to use when writing files (default: platform)",
)
group.add_argument(
"-c",
"--config",