diff options
| author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-05-09 16:25:50 -0500 | 
|---|---|---|
| committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-05-09 17:44:15 -0500 | 
| commit | a4afbafe6a9e1d2937ab2134028fc4e4442a5c05 (patch) | |
| tree | 385ef69bad9df5ae3b78464c1b14694bf402433d | |
| parent | 4f684f7073149c48ea9dd962b64a8bf7a169a1cf (diff) | |
| download | gpt-chat-cli-a4afbafe6a9e1d2937ab2134028fc4e4442a5c05.tar.xz gpt-chat-cli-a4afbafe6a9e1d2937ab2134028fc4e4442a5c05.zip  | |
Add magic PYTHON_ARGCOMPLETE_OK to code to trigger init during install
| -rw-r--r-- | src/gpt_chat_cli/main.py | 6 | 
1 files changed, 6 insertions, 0 deletions
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()  | 
