def get_config(argv):
    """
    parse the module arguments and put them in a config dict

    :param argv: array of arguments from the config file
    :return: config dict
    """
    config = {}
    config['url'] = 'https://localhost/validate/simplecheck'
    config['prompt'] = 'Your OTP:'
    config['debug'] = False
    if 'debug' in argv:
        config['debug'] = True
    for arg in argv:
        if arg.startswith('url='):
            config['url'] = arg[len('url='):]
        if arg.startswith('realm='):
            config['realm'] = arg[len('realm='):]
        if arg.startswith('prompt='):
            prompt = arg[len('prompt='):]
            config['prompt'] = prompt.replace('_', ' ')
    return config
