mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
Improvements: flag -f (not -mf); unitest improvements.
This commit is contained in:
parent
13ac5f0b60
commit
4692a689fe
2 changed files with 5 additions and 7 deletions
|
@ -382,7 +382,7 @@ def main(argv=None, input=None, output=None, force_git_root=None):
|
|||
)
|
||||
other_group.add_argument(
|
||||
"--message-file",
|
||||
"-mf",
|
||||
"-f",
|
||||
metavar="MESSAGE_FILE",
|
||||
help="Specify a file containing the message to send GPT, process reply, then exit (disables chat mode)",
|
||||
)
|
||||
|
@ -571,8 +571,7 @@ def main(argv=None, input=None, output=None, force_git_root=None):
|
|||
coder.run(with_message=args.message)
|
||||
elif args.message_file:
|
||||
try:
|
||||
with open(args.message_file, 'r', encoding='utf-8') as file:
|
||||
message_from_file = file.read()
|
||||
message_from_file = io.read_text(args.message_file)
|
||||
io.tool_output()
|
||||
coder.run(with_message=message_from_file)
|
||||
except FileNotFoundError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue