mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 10:45:00 +00: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:
parent
4ff5b0e115
commit
841dfd0a4a
1 changed files with 5 additions and 5 deletions
|
@ -19,12 +19,12 @@ def main(args=None):
|
||||||
help="a list of source code files (optional)",
|
help="a list of source code files (optional)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--history-file",
|
"--input-history-file",
|
||||||
metavar="HISTORY_FILE",
|
metavar="INPUT_HISTORY_FILE",
|
||||||
default=os.environ.get(f"{env_prefix}HISTORY_FILE", ".aider.history"),
|
default=os.environ.get(f"{env_prefix}INPUT_HISTORY_FILE", ".aider.input.history"),
|
||||||
help=(
|
help=(
|
||||||
"Specify the chat input history file (default: .aider.history,"
|
"Specify the chat input history file (default: .aider.input.history,"
|
||||||
f" ${env_prefix}HISTORY_FILE)"
|
f" ${env_prefix}INPUT_HISTORY_FILE)"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue