def main(): if len(sys.argv) < 2: print("Usage: son-emu-cli compute|datacenter|network|monitor <arguments>") exit(0) elif sys.argv[1] == "monitor": restmon.main(sys.argv[2:]) elif sys.argv[1] == "network": restnetw.main(sys.argv[2:]) elif sys.argv[1] == "compute": restcom.main(sys.argv[2:]) elif sys.argv[1] == "datacenter": restdc.main(sys.argv[2:])
def main(): if len(sys.argv) < 2: help() elif sys.argv[1] == "monitor": restmon.main(sys.argv[2:]) elif sys.argv[1] == "network": restnetw.main(sys.argv[2:]) elif sys.argv[1] == "compute": restcom.main(sys.argv[2:]) elif sys.argv[1] == "datacenter": restdc.main(sys.argv[2:]) else: help()