mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Renamed --cmd to --msg
This commit is contained in:
parent
6590faa428
commit
39c1aeac9e
1 changed files with 5 additions and 4 deletions
|
@ -221,8 +221,9 @@ def main(args=None, input=None, output=None):
|
|||
default=False,
|
||||
)
|
||||
parser.add_argument(
|
||||
"--command",
|
||||
"--cmd",
|
||||
"--message",
|
||||
"--msg",
|
||||
"-m",
|
||||
metavar="COMMAND",
|
||||
help="Specify a single command to give to GPT (disables chat mode)",
|
||||
)
|
||||
|
@ -285,9 +286,9 @@ def main(args=None, input=None, output=None):
|
|||
return
|
||||
|
||||
io.tool_output("Use /help to see in-chat commands.")
|
||||
if args.command:
|
||||
if args.message:
|
||||
io.tool_output()
|
||||
coder.run(with_message=args.command)
|
||||
coder.run(with_message=args.message)
|
||||
else:
|
||||
coder.run()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue