From 9beebc366dd19ce2bbc15e3edf1088e885ef30cd Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 9 May 2023 00:18:32 -0700 Subject: [PATCH] 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 ``` --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 030c993c4..25f68118c 100644 --- a/main.py +++ b/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) \ No newline at end of file