Spaces:
Runtime error
Runtime error
File size: 516 Bytes
04fbff5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import argparse
import importlib
import subprocess
vbench_cmd = ['evaluate', 'static_filter']
def main():
parser = argparse.ArgumentParser(prog="vbench")
subparsers = parser.add_subparsers(title='vbench subcommands')
for cmd in vbench_cmd:
module = importlib.import_module(f'vbench.cli.{cmd}')
module.register_subparsers(subparsers)
parser.set_defaults(func=help)
args = parser.parse_args()
args.func(args)
def help(args):
subprocess.run(['vbench', '-h'], check=True)
|