mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: Forward script args to aider command
This commit is contained in:
parent
4e608dbd77
commit
a3562d1d62
1 changed files with 2 additions and 6 deletions
|
@ -70,9 +70,7 @@ def run_plain_git_log():
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
model_name = "o3"
|
aider_args = sys.argv[1:]
|
||||||
if len(sys.argv) > 1:
|
|
||||||
model_name = sys.argv[1]
|
|
||||||
|
|
||||||
# Get the git log and diff output
|
# Get the git log and diff output
|
||||||
log_content = run_git_log()
|
log_content = run_git_log()
|
||||||
|
@ -141,9 +139,7 @@ def main():
|
||||||
message,
|
message,
|
||||||
"--no-git",
|
"--no-git",
|
||||||
"--no-auto-lint",
|
"--no-auto-lint",
|
||||||
"--model",
|
] + aider_args
|
||||||
model_name,
|
|
||||||
]
|
|
||||||
subprocess.run(cmd)
|
subprocess.run(cmd)
|
||||||
|
|
||||||
# Read back the updated history
|
# Read back the updated history
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue