aboutsummaryrefslogtreecommitdiff
path: root/src/gpt_chat_cli/argvalidation.py
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-05-11 01:27:58 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-05-11 01:27:58 -0500
commit280259deb57d8c18f7655e4ecd79ba137ca0a37c (patch)
tree1945bd6613b7a7bb97e8a2f07326b5b61819aeff /src/gpt_chat_cli/argvalidation.py
parent8bc4d723f9e223b61a8d601e3bd1083f31b89322 (diff)
downloadgpt-chat-cli-280259deb57d8c18f7655e4ecd79ba137ca0a37c.tar.xz
gpt-chat-cli-280259deb57d8c18f7655e4ecd79ba137ca0a37c.zip
Add slash command and editing with an arbitrary editor
Diffstat (limited to 'src/gpt_chat_cli/argvalidation.py')
-rw-r--r--src/gpt_chat_cli/argvalidation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpt_chat_cli/argvalidation.py b/src/gpt_chat_cli/argvalidation.py
index 16987a9..8e6ef52 100644
--- a/src/gpt_chat_cli/argvalidation.py
+++ b/src/gpt_chat_cli/argvalidation.py
@@ -53,6 +53,7 @@ class Arguments:
openai_key: str
system_message: Optional[str] = None
debug_args: Optional[DebugArguments] = None
+ interactive_editor: Optional[str] = None
def post_process_raw_args(raw_args : RawArguments) -> Arguments:
_populate_defaults(raw_args)
@@ -104,7 +105,8 @@ def _restructure_arguments(raw_args : RawArguments) -> Arguments:
version=args.version,
list_models=args.list_models,
interactive=args.interactive,
- system_message=args.system_message
+ system_message=args.system_message,
+ interactive_editor=args.interactive_editor
)
def _die_validation_err(err : str):