def main():
"""
Create the ec2rl instance and run it. Provide the user with messages relevant to their subcommand, if applicable.
Returns:
(int): 0 if no errors detected,
201 if Python < 2.7,
"""
if sys.hexversion < 0x2070000:
print("ec2rl requires Python 2.7+, but running version is {0}.".format(
platform.python_version()))
return 201
import ec2rlcore.main
ec2rl = ec2rlcore.main.Main()
ec2rl()
return 0
评论列表
文章目录