mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
aider: Added a --command,-c option to specify the command to pass to coder.run().
# Context: USER: add a --command,-c option which takes a string to pass to coder.run(with_message=args.command) ASSISTANT: No changes are needed.
This commit is contained in:
parent
dfdc6a382a
commit
a77e4419cc
1 changed files with 10 additions and 1 deletions
|
@ -206,6 +206,12 @@ def main(args=None, input=None, output=None):
|
|||
help="Enable verbose output",
|
||||
default=False,
|
||||
)
|
||||
parser.add_argument(
|
||||
"--command",
|
||||
"-c",
|
||||
metavar="COMMAND",
|
||||
help="Specify the command to pass to coder.run()",
|
||||
)
|
||||
args = parser.parse_args(args)
|
||||
|
||||
io = InputOutput(
|
||||
|
@ -263,7 +269,10 @@ def main(args=None, input=None, output=None):
|
|||
return
|
||||
|
||||
io.tool_output("Use /help to see in-chat commands.")
|
||||
coder.run()
|
||||
if args.command:
|
||||
coder.run(with_message=args.command)
|
||||
else:
|
||||
coder.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue