From 537d08fd952a88a799eff4002d8e6f1d2c224258 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Fri, 5 May 2023 15:17:26 -0500 Subject: Allow --load-response-from-file without message --- src/gpt_chat_cli/argparsing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gpt_chat_cli/argparsing.py') diff --git a/src/gpt_chat_cli/argparsing.py b/src/gpt_chat_cli/argparsing.py index 04d3645..15826f2 100644 --- a/src/gpt_chat_cli/argparsing.py +++ b/src/gpt_chat_cli/argparsing.py @@ -287,7 +287,9 @@ def parse_args() -> Arguments: args.adornments = AutoDetectedOption.OFF if args.message is None: - if sys.stdin.isatty(): + if debug and args.load_response_from_file: + args.interactive = False + elif sys.stdin.isatty(): args.interactive = True if not debug: -- cgit v1.2.3