cli_arg_parse.py 249 Bytes
Newer Older
Chris Jewell's avatar
Chris Jewell committed
1
2
3
4
5
6
7
8
9
10
11
12
"""General argument parsing for all scripts"""

import argparse


def cli_args():

    parser = argparse.ArgumentParser()
    parser.add_argument("-c", "--config", type=str, help="configuration file")
    args = parser.parse_args()

    return args