File size: 933 Bytes
0ca2ffc | 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 | import argparse
def parse_args() -> argparse.Namespace:
r"""Parses the command line arguments."""
parser = argparse.ArgumentParser(description='graphmetro')
parser.add_argument('--cfg',
dest='cfg_file',
type=str,
required=True,
help='The configuration file path.')
parser.add_argument('--repeat',
type=int,
default=1,
help='The number of repeated jobs.')
parser.add_argument('--mark_done',
action='store_true',
help='Mark yaml as done after a job has finished.')
parser.add_argument('opts',
default=None,
nargs=argparse.REMAINDER,
help='See graphgym/config.py for remaining options.')
return parser.parse_args()
|