mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
Update help strings for arguments with 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 by adding the environment variable name to the end of the help string. ```python main.py <<<<<<< ORIGINAL help="Specify the history file (default: .coder.history)", ) ... help="Disable prettyd output of GPT responses", ======= help="Specify the history file (default: .coder.history, env: CODER_HISTORY_FILE)", ) ... help="Disable prettyd output of GPT responses (env: CODER_PRETTY)", >>>>>>> UPDATED ``` ```python main.py <<<<<<< ORIGINAL help="Commit dirty files without confirmation", ======= help="Commit dirty files without confirmation (env: CODER_COMMIT_DIRTY)", >>>>>>> UPDATED ```
This commit is contained in:
parent
1b57a6a703
commit
9beebc366d
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -56,7 +56,7 @@ def main():
|
|||
parser.add_argument(
|
||||
"--commit-dirty",
|
||||
action="store_true",
|
||||
help="Commit dirty files without confirmation",
|
||||
help="Commit dirty files without confirmation (env: CODER_COMMIT_DIRTY)",
|
||||
default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
@ -78,4 +78,4 @@ def main():
|
|||
|
||||
if __name__ == "__main__":
|
||||
status = main()
|
||||
sys.exit(status)
|
||||
sys.exit(status)
|
Loading…
Add table
Add a link
Reference in a new issue