tweaking cmd line args, readme usage

This commit is contained in:
Paul Gauthier 2023-05-26 16:40:04 -07:00
parent 905a81d78e
commit c33169756a
2 changed files with 22 additions and 23 deletions

View file

@ -73,34 +73,34 @@ to set many options:
``` ```
-h, --help show this help message and exit -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 --input-history-file INPUT_HISTORY_FILE
Specify the chat input history file (default: Specify the chat input history file (default:
.aider.input.history) [env var: .aider.input.history) [env var: AIDER_INPUT_HISTORY_FILE]
AIDER_INPUT_HISTORY_FILE]
--chat-history-file CHAT_HISTORY_FILE --chat-history-file CHAT_HISTORY_FILE
Specify the chat history file (default: Specify the chat history file (default:
.aider.chat.history.md) [env var: .aider.chat.history.md) [env var: AIDER_CHAT_HISTORY_FILE]
AIDER_CHAT_HISTORY_FILE] --model MODEL Specify the model to use for the main chat (default: gpt-4)
--model MODEL Specify the model to use for the main chat (default: [env var: AIDER_MODEL]
gpt-4) [env var: AIDER_MODEL] -3 Use gpt-3.5-turbo model for the main chat (not advised)
-3 Use gpt-3.5-turbo model for the main chat (not --pretty Enable pretty, colorized output (default: True) [env var:
advised)
--no-pretty Disable pretty, colorized output [env var:
AIDER_PRETTY] AIDER_PRETTY]
--apply FILE Apply the changes from the given file instead of --no-pretty Disable pretty, colorized output
running the chat (debug) --apply FILE Apply the changes from the given file instead of running
--no-auto-commits Disable auto commit of changes [env var: the chat (debug)
AIDER_AUTO_COMMITS] --auto-commits Enable auto commit of changes (default: True) [env var:
--dry-run Perform a dry run without applying changes (default: AIDER_AUTO_COMMIT]
False) --no-auto-commits Disable auto commit of changes
--show-diffs Show diffs when committing changes (default: False) --dry-run Perform a dry run without applying changes (default: False)
[env var: AIDER_SHOW_DIFFS] --show-diffs Show diffs when committing changes (default: False) [env
--ctags [CTAGS] Add ctags to the chat to help GPT understand the var: AIDER_SHOW_DIFFS]
codebase (default: check for ctags executable) [env --ctags [CTAGS] Add ctags to the chat to help GPT understand the codebase
var: AIDER_CTAGS] (default: check for ctags executable) [env var:
AIDER_CTAGS]
--yes Always say yes to every confirmation --yes Always say yes to every confirmation
-v, --verbose Enable verbose output -v, --verbose Enable verbose output
``` ```
## Chat commands ## Chat commands

View file

@ -100,7 +100,6 @@ def main(args=None, input=None, output=None):
"--no-pretty", "--no-pretty",
action="store_false", action="store_false",
dest="pretty", dest="pretty",
env_var=f"{env_prefix}PRETTY",
help="Disable pretty, colorized output", help="Disable pretty, colorized output",
) )
parser.add_argument( parser.add_argument(
@ -111,6 +110,7 @@ def main(args=None, input=None, output=None):
parser.add_argument( parser.add_argument(
"--auto-commits", "--auto-commits",
action="store_true", action="store_true",
env_var=f"{env_prefix}AUTO_COMMIT",
default=True, default=True,
help="Enable auto commit of changes (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", "--no-auto-commits",
action="store_false", action="store_false",
dest="auto_commit", dest="auto_commit",
env_var=f"{env_prefix}AUTO_COMMIT",
help="Disable auto commit of changes", help="Disable auto commit of changes",
) )
parser.add_argument( parser.add_argument(