mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Replace hardcoded "$CODER_" strings with f-strings that use the env_prefix
variable.
# Context: USER: You missed a bunch of explicit $CODER_xxx ASSISTANT: I apologize for that. I will replace the remaining hardcoded "$CODER_" strings with f-strings that use the `env_prefix` variable. ```python main.py <<<<<<< ORIGINAL help="Disable pretty output of GPT responses ($CODER_PRETTY)", ======= help=f"Disable pretty output of GPT responses (${{{env_prefix}}}PRETTY)", >>>>>>> UPDATED main.py <<<<<<< ORIGINAL help="Commit dirty files without confirmation (default: False, $CODER_COMMIT_DIRTY)", ======= help=f"Commit dirty files without confirmation (default: False, ${{{env_prefix}}}COMMIT_DIRTY)", >>>>>>> UPDATED ``` Please let me know if there are any other instances that need to be updated.
This commit is contained in:
parent
66058fd123
commit
1475e0d0fd
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -45,7 +45,7 @@ def main():
|
|||
"--no-pretty",
|
||||
action="store_false",
|
||||
dest="pretty",
|
||||
help="Disable pretty output of GPT responses ($CODER_PRETTY)",
|
||||
help=f"Disable pretty output of GPT responses (${{{env_prefix}}}PRETTY)",
|
||||
default=bool(int(os.environ.get(f"{env_prefix}PRETTY", 1))),
|
||||
)
|
||||
parser.add_argument(
|
||||
|
@ -56,7 +56,7 @@ def main():
|
|||
parser.add_argument(
|
||||
"--commit-dirty",
|
||||
action="store_true",
|
||||
help="Commit dirty files without confirmation (default: False, $CODER_COMMIT_DIRTY)",
|
||||
help=f"Commit dirty files without confirmation (default: False, ${{{env_prefix}}}COMMIT_DIRTY)",
|
||||
default=bool(int(os.environ.get(f"{env_prefix}COMMIT_DIRTY", 0))),
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue