From a4afbafe6a9e1d2937ab2134028fc4e4442a5c05 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Tue, 9 May 2023 16:25:50 -0500 Subject: Add magic PYTHON_ARGCOMPLETE_OK to code to trigger init during install --- src/gpt_chat_cli/main.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/gpt_chat_cli/main.py b/src/gpt_chat_cli/main.py index 77d2708..7af4d2d 100644 --- a/src/gpt_chat_cli/main.py +++ b/src/gpt_chat_cli/main.py @@ -1,3 +1,7 @@ +#!/usr/bin/env python3 + +# PYTHON_ARGCOMPLETE_OK + def main(): # defer other imports until autocomplete has finished from .argparsing import parse_raw_args_or_complete @@ -34,5 +38,7 @@ def main(): else: singleton(args) + return 0 + if __name__ == "__main__": main() -- cgit v1.2.3