def main(argv):
    if (sys.hexversion < 33947648):
        print(('\nYour python version %s is unsupported, please upgrade.\n' % (sys.version.split(' ', 1)[0],)), file=sys.stderr)
        return 2
    global settings
    settings = Settings()
    colorize_CMDstatus_doc()
    dispatcher = subcommand.CommandDispatcher(__name__)
    try:
        return dispatcher.execute(OptionParser(), argv)
    except auth.AuthenticationError as e:
        DieWithError(str(e))
    except urllib2.HTTPError as e:
        if (e.code != 500):
            raise
        DieWithError(('AppEngine is misbehaving and returned HTTP %d, again. Keep faith and retry or visit go/isgaeup.\n%s' % (e.code, str(e))))
    return 0
def main(argv):
    if (sys.hexversion < 33947648):
        print(('\nYour python version %s is unsupported, please upgrade.\n' % (sys.version.split(' ', 1)[0],)), file=sys.stderr)
        return 2
    global settings
    settings = Settings()
    colorize_CMDstatus_doc()
    dispatcher = subcommand.CommandDispatcher(__name__)
    try:
        return dispatcher.execute(OptionParser(), argv)
    except auth.AuthenticationError as e:
        DieWithError(str(e))
    except urllib2.HTTPError as e:
        if (e.code != 500):
            raise
        DieWithError(('AppEngine is misbehaving and returned HTTP %d, again. Keep faith and retry or visit go/isgaeup.\n%s' % (e.code, str(e))))
    return 0