config.py 481 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
import argparse

def parse_args():
    '''
    Parse command line arguments. Many of the following
    can be set in the .yaml config file as well.
    '''
    parser = argparse.ArgumentParser()
    parser.add_argument('config_file', help='.yaml config file for injection settings.')
    # parser.add_argument('-d', '--data_dir', help='Directory that houses the input data.')
    # parser.add_argument('-w', '--work_dir', help='The path for output.')
    return parser.parse_args()