def main()

in cronjobs/src/main.py [0:0]


def main(*args):
    # Run the function specified in CLI arg.
    #
    # $ AUTH=user:pass python aws_lambda.py refresh_signature
    #

    if not args or args[0] in ("help", "--help"):
        help_()
        return

    entrypoint = args[0]
    if entrypoint not in ENTRYPOINTS:
        print(f"Unknown function {entrypoint!r}", file=sys.stderr)
        help_()
        return 1

    return run(entrypoint)