From c33169756a1ed63b4c37b17cba8b5bebd2ed8c68 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 26 May 2023 16:40:04 -0700 Subject: [PATCH] tweaking cmd line args, readme usage --- README.md | 42 +++++++++++++++++++++--------------------- aider/main.py | 3 +-- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index cd17fd6fa..7d1efce01 100644 --- a/README.md +++ b/README.md @@ -73,34 +73,34 @@ to set many options: ``` -h, --help show this help message and exit + -c CONFIG_FILE, --config CONFIG_FILE + Specify the config file (default: search for + .aider.conf.yml in git root or home directory) --input-history-file INPUT_HISTORY_FILE Specify the chat input history file (default: - .aider.input.history) [env var: - AIDER_INPUT_HISTORY_FILE] + .aider.input.history) [env var: AIDER_INPUT_HISTORY_FILE] --chat-history-file CHAT_HISTORY_FILE Specify the chat history file (default: - .aider.chat.history.md) [env var: - AIDER_CHAT_HISTORY_FILE] - --model MODEL Specify the model to use for the main chat (default: - gpt-4) [env var: AIDER_MODEL] - -3 Use gpt-3.5-turbo model for the main chat (not - advised) - --no-pretty Disable pretty, colorized output [env var: + .aider.chat.history.md) [env var: AIDER_CHAT_HISTORY_FILE] + --model MODEL Specify the model to use for the main chat (default: gpt-4) + [env var: AIDER_MODEL] + -3 Use gpt-3.5-turbo model for the main chat (not advised) + --pretty Enable pretty, colorized output (default: True) [env var: AIDER_PRETTY] - --apply FILE Apply the changes from the given file instead of - running the chat (debug) - --no-auto-commits Disable auto commit of changes [env var: - AIDER_AUTO_COMMITS] - --dry-run Perform a dry run without applying changes (default: - False) - --show-diffs Show diffs when committing changes (default: False) - [env var: AIDER_SHOW_DIFFS] - --ctags [CTAGS] Add ctags to the chat to help GPT understand the - codebase (default: check for ctags executable) [env - var: AIDER_CTAGS] + --no-pretty Disable pretty, colorized output + --apply FILE Apply the changes from the given file instead of running + the chat (debug) + --auto-commits Enable auto commit of changes (default: True) [env var: + AIDER_AUTO_COMMIT] + --no-auto-commits Disable auto commit of changes + --dry-run Perform a dry run without applying changes (default: False) + --show-diffs Show diffs when committing changes (default: False) [env + var: AIDER_SHOW_DIFFS] + --ctags [CTAGS] Add ctags to the chat to help GPT understand the codebase + (default: check for ctags executable) [env var: + AIDER_CTAGS] --yes Always say yes to every confirmation -v, --verbose Enable verbose output - ``` ## Chat commands diff --git a/aider/main.py b/aider/main.py index 743f18af2..22b6ef11a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -100,7 +100,6 @@ def main(args=None, input=None, output=None): "--no-pretty", action="store_false", dest="pretty", - env_var=f"{env_prefix}PRETTY", help="Disable pretty, colorized output", ) parser.add_argument( @@ -111,6 +110,7 @@ def main(args=None, input=None, output=None): parser.add_argument( "--auto-commits", action="store_true", + env_var=f"{env_prefix}AUTO_COMMIT", default=True, help="Enable auto commit of changes (default: True)", ) @@ -119,7 +119,6 @@ def main(args=None, input=None, output=None): "--no-auto-commits", action="store_false", dest="auto_commit", - env_var=f"{env_prefix}AUTO_COMMIT", help="Disable auto commit of changes", ) parser.add_argument(