From aaade794a6a2465f8cef5a1a4efdb76c937edfa5 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 14 Aug 2024 10:04:12 -0700 Subject: [PATCH] feat: Add verbose printing of default config files before reversing --- aider/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aider/main.py b/aider/main.py index a25816f45..27261549a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -324,6 +324,14 @@ 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)) + parser = get_parser(default_config_files, git_root) + args, unknown = parser.parse_known_args(argv) + + if args.verbose: + print("Default config files before reversing:") + for file in default_config_files: + print(f" - {file}") + default_config_files.reverse() parser = get_parser(default_config_files, git_root)