MCPcopy Create free account
hub / github.com/hugapi/hug / exit

Method exit

hug/interface.py:469–472  ·  view source on GitHub ↗
(self, status=0, message=None)

Source from the content-addressed store, hash-verified

467 exit_callback = None
468
469 def exit(self, status=0, message=None):
470 if self.exit_callback:
471 self.exit_callback(message)
472 super().exit(status, message)
473
474 self.parser = CustomArgumentParser(
475 description=route.get("doc", self.interface.spec.__doc__)

Callers 2

__call__Method · 0.80
hugFunction · 0.80

Calls 1

exit_callbackMethod · 0.80

Tested by

no test coverage detected