def base_parser(program):
    parser = argparse.ArgumentParser(
        prog=program,
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
    )
    parser.add_argument(
        'healthchecks',
        action='store',
        nargs='*',
        help="Space separated list of healthchecks to collect. "
             "Each item in the list can be (in order of priority): a "
             "dotted-path to importable module or package, or a path to a "
             "folder.")
    return parser
Return base argument parser.
dataset/ETHPy150Open python-hospital/hospital/hospital/cli.py/base_parser