def parser ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( '-c' , '--config_paths' , default = [ ] , action = 'append' , help = 'path to a configuration directory' ) return parser
python argparse config file
Return a parser for setting one or more configuration paths
def parser():

    """Return a parser for setting one or more configuration paths"""

    parser = argparse.ArgumentParser()
    parser.add_argument('-c', '--config_paths', default=[], action='append',
                        help='path to a configuration directory')
    return parser