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