Added --exit

This commit is contained in:
Paul Gauthier 2024-07-03 14:06:39 -03:00
parent b5cd5f0e23
commit 8a1fbfd95d
2 changed files with 9 additions and 0 deletions

View file

@ -462,6 +462,12 @@ def get_parser(default_config_files, git_root):
help="Print the system prompts and exit (debug)",
default=False,
)
group.add_argument(
"--exit",
action="store_true",
help="Do all startup activities then exit before accepting user input (debug)",
default=False,
)
group.add_argument(
"--message",
"--msg",

View file

@ -537,6 +537,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
return 1
return
if args.exit:
return
threading.Thread(target=load_slow_imports).start()
while True: