import sys

from zappa_settings_generator_zappa_utils import get_env_version


# This file should contain _zappa_utils at the end of its name in order to be excluded from deploying to lambda
# Refer to "exclude": ["*_zappa_utils.py"] in zappa_settings

def main():
    if len(sys.argv) < 1:
        print(
            "you should specify your .env file name as the first argument."
            " (python " + sys.argv[0] + " .env.production)")
        exit(1)
    version = get_env_version()

    print(version)


if __name__ == '__main__':
    main()
