MCPcopy Create free account
hub / github.com/apache/cloudstack / main

Function main

tools/marvin/marvin/deployAndRun.py:420–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418
419
420def main():
421 parser = MarvinCliParser()
422 parser.add_option("-v", "--version",
423 action="store_true", dest="version", default=False,
424 help="prints marvin cli version information")
425 (options, args) = parser.parse_args()
426 if options.version:
427 MarvinCliHelp.help_printversion()
428 sys.exit(0)
429 if len(sys.argv) > 1:
430 if sys.argv[1].lower() not in list(MarvinCliCommands.cmds_info.keys()):
431 print("\n==== Invalid Command ====")
432 sys.exit(1)
433 args = ' '.join(args)
434 if '-h' in args or '--help' in args:
435 print(MarvinCliCommands.cmds_info[sys.argv[0]])
436 else:
437 MarvinCli().onecmd(args)
438 sys.exit(0)
439
440if __name__ == "__main__":
441 main()

Callers 1

deployAndRun.pyFile · 0.70

Calls 5

MarvinCliParserClass · 0.85
MarvinCliClass · 0.85
parse_argsMethod · 0.80
keysMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected