mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
feat: add --load option to execute commands from file on launch
This commit is contained in:
parent
347a9f2a6d
commit
717592463e
2 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#ai add --load <fname> 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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue