def METHOD_NAME(key, filepath):
    """Get configuration parameters.
    This command reads <key> configuration parameter from the
    configuration file given in <filepath>. When <filepath>
    is not given, the command will use the default configuration
    file.
    Configuration parameter in <key> must follow the pattern
    "<section>.<option>" (e.g 'endpoint.host').
    KEY: configuration parameter
    """
    if not filepath:
        dirpath = os.path.expanduser(SORTINGHAT_CFG_DIR_NAME)
        config_file = os.path.join(dirpath, SORTINGHAT_CFG_FILE_NAME)
    else:
        config_file = filepath
    if not _check_config_key(key):
        msg = "{} config parameter is not supported".format(key)
        raise click.ClickException(msg)
    if not os.path.isfile(config_file):
        raise click.FileError(config_file, hint="file does not exist")
    section, option = key.split('.')
    cfg = configparser.ConfigParser()
    cfg.read(config_file)
    try:
        option = cfg.METHOD_NAME(section, option)
        display('config.tmpl', key=key, option=option)
    except (configparser.NoSectionError, configparser.NoOptionError):
        pass