def section(self, ctx, optional=False):
values = self.load()<EOL>try:<EOL><INDENT>return values[ctx.info_name]<EOL><DEDENT>except KeyError:<EOL><INDENT>if optional:<EOL><INDENT>return configobj.ConfigObj({}, **self.DEFAULT_CONFIG_OPTS)<EOL><DEDENT>raise LoggedFailure("<STR_LIT>".format(ctx.info_name))<EOL><DEDENT>
Return section of the config for a specific context (sub-command).

Parameters:
    ctx (Context): The Click context object.
    optional (bool): If ``True``, return an empty config object when section is missing.

Returns:
    Section: The configuration section belonging to
        the active (sub-)command (based on ``ctx.info_name``).