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,
)
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()