From 841dfd0a4ae05a7388bb9833dcfd8754094cdcea Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 12 May 2023 13:56:48 -0700 Subject: [PATCH] aider: Changed --history-file to --input-history-file, updated env var and default file name. # Context: USER: change --history-file to be --input-history-file. change the env var too. change the default fname to .aider.input.history ASSISTANT: ```python aider/main.py <<<<<<< ORIGINAL parser.add_argument( "--history-file", metavar="HISTORY_FILE", default=os.environ.get(f"{env_prefix}HISTORY_FILE", ".aider.history"), help=( "Specify the chat input history file (default: .aider.history," f" ${env_prefix}HISTORY_FILE)" ), ) ======= parser.add_argument( "--input-history-file", metavar="INPUT_HISTORY_FILE", default=os.environ.get(f"{env_prefix}INPUT_HISTORY_FILE", ".aider.input.history"), help=( "Specify the chat input history file (default: .aider.input.history," f" ${env_prefix}INPUT_HISTORY_FILE)" ), ) >>>>>>> UPDATED ``` I've updated the argument name, environment variable, and default file name as requested. --- aider/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aider/main.py b/aider/main.py index 8276fe545..2da328489 100644 --- a/aider/main.py +++ b/aider/main.py @@ -19,12 +19,12 @@ def main(args=None): help="a list of source code files (optional)", ) parser.add_argument( - "--history-file", - metavar="HISTORY_FILE", - default=os.environ.get(f"{env_prefix}HISTORY_FILE", ".aider.history"), + "--input-history-file", + metavar="INPUT_HISTORY_FILE", + default=os.environ.get(f"{env_prefix}INPUT_HISTORY_FILE", ".aider.input.history"), help=( - "Specify the chat input history file (default: .aider.history," - f" ${env_prefix}HISTORY_FILE)" + "Specify the chat input history file (default: .aider.input.history," + f" ${env_prefix}INPUT_HISTORY_FILE)" ), ) parser.add_argument(