Spaces:
Running
Running
File size: 777 Bytes
bdf9096 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import argparse
class ArgParser(object):
@staticmethod
def parse(description):
parser = argparse.ArgumentParser(description=description)
parser.add_argument(
'-o',
'--options',
dest='run_params_json',
help='a path to the parameter configuration of the program',
)
parser.add_argument(
'-a',
'--algorithm-configs',
dest='alg_params_json',
help='a path to the configurations of the algorithms'
)
parser.add_argument(
'-l',
'--load',
dest='result_load_files',
nargs='+',
help='the list of paths to already saved results'
)
return parser.parse_args() |