MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / main

Function main

mbench/cli/mbench.py:7–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5mbench_cmd = ['evaluate']
6
7def main():
8 parser = argparse.ArgumentParser(prog="mbench", formatter_class=argparse.RawTextHelpFormatter)
9 subparsers = parser.add_subparsers(title='mbench subcommands')
10
11 for cmd in mbench_cmd:
12 module = importlib.import_module(f'mbench.cli.{cmd}')
13 module.register_subparsers(subparsers)
14 parser.set_defaults(func=help)
15 args = parser.parse_args()
16 args.func(args)
17
18def help(args):
19 subprocess.run(['mbench', '-h'], check=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected