From 717592463eb9f0bf99bd867f0e7463c9571a5bbd Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 29 Oct 2024 13:54:42 -0700 Subject: [PATCH] feat: add --load option to execute commands from file on launch --- aider/args.py | 3 +-- aider/main.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aider/args.py b/aider/args.py index 42ea02fed..5dca896e1 100644 --- a/aider/args.py +++ b/aider/args.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -#ai add --load and call cmd_load with it in main! import argparse import os import sys @@ -664,7 +663,7 @@ def get_parser(default_config_files, git_root): group.add_argument( "--load", metavar="LOAD_FILE", - help="Load and execute commands from a file", + help="Load and execute /commands from a file on launch", ) group.add_argument( "--encoding", diff --git a/aider/main.py b/aider/main.py index c786bdb51..3196bf52c 100644 --- a/aider/main.py +++ b/aider/main.py @@ -1,4 +1,4 @@ -#ai +# ai import configparser import json import os @@ -772,7 +772,6 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F if args.load: commands.cmd_load(args.load) - return if args.exit: return