mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
Allow pre-parser to read the yaml, in case user wants to include env-file: option there
This commit is contained in:
parent
ecc21517ee
commit
95a4ed47e6
2 changed files with 19 additions and 3 deletions
|
@ -281,7 +281,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
default_config_files.append(Path.home() / conf_fname) # homedir
|
||||
default_config_files = list(map(str, default_config_files))
|
||||
|
||||
preparser = get_preparser(git_root)
|
||||
preparser = get_preparser(default_config_files, git_root)
|
||||
pre_args, _ = preparser.parse_known_args(argv)
|
||||
|
||||
# Load the .env file specified in the arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue