mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Added --env-file param
This commit is contained in:
parent
254481408e
commit
d64a457def
1 changed files with 7 additions and 0 deletions
|
@ -151,6 +151,13 @@ def get_parser(default_config_files, git_root):
|
|||
default=1024,
|
||||
help="Max number of tokens to use for repo map, use 0 to disable (default: 1024)",
|
||||
)
|
||||
default_env_file = os.path.join(git_root, ".env") if git_root else ".env"
|
||||
group.add_argument(
|
||||
"--env-file",
|
||||
metavar="ENV_FILE",
|
||||
default=default_env_file,
|
||||
help="Specify the .env file to load (default: .env in git root)",
|
||||
)
|
||||
|
||||
##########
|
||||
group = parser.add_argument_group("History Files")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue