Renamed --cmd to --msg

This commit is contained in:
Paul Gauthier 2023-06-24 13:49:27 -07:00
parent 6590faa428
commit 39c1aeac9e

View file

@ -221,8 +221,9 @@ def main(args=None, input=None, output=None):
default=False, default=False,
) )
parser.add_argument( parser.add_argument(
"--command", "--message",
"--cmd", "--msg",
"-m",
metavar="COMMAND", metavar="COMMAND",
help="Specify a single command to give to GPT (disables chat mode)", 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 return
io.tool_output("Use /help to see in-chat commands.") io.tool_output("Use /help to see in-chat commands.")
if args.command: if args.message:
io.tool_output() io.tool_output()
coder.run(with_message=args.command) coder.run(with_message=args.message)
else: else:
coder.run() coder.run()