mirror of
https://github.com/Aider-AI/aider
synced 2026-05-12 18:06:22 +02:00
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.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user