mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Update help strings for arguments that take environment variable defaults.
# Context: USER: for each arg that takes an environ default, add $ENV_NAME to the end of the help string ASSISTANT: I will update the help strings for each argument that takes an environment variable default to include the environment variable name. ```python main.py <<<<<<< ORIGINAL help="Specify the history file (default: .coder.history)", ======= help="Specify the history file (default: .coder.history, env: CODER_HISTORY_FILE)", >>>>>>> UPDATED main.py <<<<<<< ORIGINAL help="Disable prettyd output of GPT responses", default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))), ======= help="Disable prettyd output of GPT responses (env: CODER_PRETTY)", default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))), >>>>>>> UPDATED main.py <<<<<<< ORIGINAL help="Commit dirty files without confirmation (env: CODER_COMMIT_DIRTY)", default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))), ======= help="Commit dirty files without confirmation (default: False, env: CODER_COMMIT_DIRTY)", default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))), >>>>>>> UPDATED ```
This commit is contained in:
parent
9beebc366d
commit
39046a455c
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -19,7 +19,7 @@ def main():
|
|||
"--history-file",
|
||||
metavar="HISTORY_FILE",
|
||||
default=os.environ.get("CODER_HISTORY_FILE", ".coder.history"),
|
||||
help="Specify the history file (default: .coder.history)",
|
||||
help="Specify the history file (default: .coder.history, env: CODER_HISTORY_FILE)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--model",
|
||||
|
@ -45,7 +45,7 @@ def main():
|
|||
"--no-pretty",
|
||||
action="store_false",
|
||||
dest="pretty",
|
||||
help="Disable prettyd output of GPT responses",
|
||||
help="Disable prettyd output of GPT responses (env: CODER_PRETTY)",
|
||||
default=bool(int(os.environ.get(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 (env: CODER_COMMIT_DIRTY)",
|
||||
help="Commit dirty files without confirmation (default: False, env: CODER_COMMIT_DIRTY)",
|
||||
default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue