def parse_arguments():
    default_config = os.path.join(os.path.dirname(__file__), '..', 'config')
    default_config = os.path.abspath(default_config)

    parser = argparse.ArgumentParser()
    parser.add_argument('-c', '--config', dest='config_dir', type=str,
                        default=default_config,
                        help='Polyglot configuration directory')
    parser.add_argument('-v', '--verbose', dest='verbose', default=0,
                        action="store_const", const=1,
                        help="Enable verbose logging")
    parser.add_argument('-vv', dest='verbose', default=0,
                        action="store_const", const=2,
                        help="Enable very verbose logging")
    args = parser.parse_args()
    return args
Parse the command line arguments
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/__main__.py/parse_arguments