def cassback_main():
    """Script entry point for the command line tool    
    """
    
    
    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)
dataset/ETHPy150Open amorton/cassback/cassback/scripts.py/cassback_main/operator `+` -> `%`