def main(argv): if len(argv) < 2: usage(argv) sys.exit(1) config.configure_auth() command = argv[1] del argv[1] if command == "submit": submit(argv) elif command == "watch": watch(argv) elif command == "cancel": cancel_job(argv) elif command == "fetch": fetch(argv) else: usage(argv) sys.exit(1)
def main(argv): if len(argv) < 2: usage(argv) sys.exit(1) config.configure_auth() socket.setdefaulttimeout(SOCKET_TIMEOUT_SECS) command = argv[1] del argv[1] if command == "submit": submit(argv) elif command == "watch": watch(argv) elif command == "cancel": cancel_job(argv) elif command == "fetch": fetch(argv) else: usage(argv) sys.exit(1)