def cassback_main():
    
    
    args = arg_parser().parse_args()
    init_logging(args)
    
    log = logging.getLogger(__name__)
    log.info("Got command args %(args)s" % vars())
    cassandra.set_version(args.cassandra_version)
    
    try:
        # parsing the args works out which function we want to call.
        sub_command = args.func(args)
        endpoints.validate_args(args)
        
        if callable(sub_command):
            rv, out = sub_command()
        else:
            rv = 0
            out = sub_command
        sys.stdout.write(str(out) + "\n")

    except (Exception) as exc:
        print "Error:"
        traceback.print_exc()
        sys.exit(1)
    sys.exit(rv)
Assert Swagger version is '2.0'
dataset/ETHPy150Open amorton/cassback/cassback/scripts.py/cassback_main--crossover with--dataset/ETHPy150Open rightlag/pyswagger/tests/test_swagger.py/SwaggerTestCast.test_swagger_version