def entry_point(items=tuple()):
try:<EOL><INDENT>if not items:<EOL><INDENT>from .example import ExampleCommand<EOL>from .version import Version<EOL>items = [(ExampleCommand.NAME, ExampleCommand),<EOL>(Version.NAME, Version)]<EOL><DEDENT>main("<STR_LIT>", items=items)<EOL><DEDENT>except Stop as stop:<EOL><INDENT>print(stop)<EOL>sys.exit(stop.rc)<EOL><DEDENT>except SystemExit:<EOL><INDENT>raise<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>print("<STR_LIT>")<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>except Exception:<EOL><INDENT>traceback.print_exc()<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>
External entry point which calls main() and
if Stop is raised, calls sys.exit()