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:
Paul Gauthier 2023-05-09 00:18:32 -07:00
parent 1b57a6a703
commit 9beebc366d

View file

@ -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)