def override_subcommand(section_name, section_items, args):
    """
    Given a specific section in the configuration file that maps to
    a subcommand (except for the global section) read all the keys that are
    actual argument flags and slap the values for that one subcommand.

    Return the altered ``args`` object at the end.
    """
    _boolean_states = {'yes': True, 'true': True, 'on': True, 'no': False,
        'false': False, 'off': False}
    for k, v in section_items:
        try:
            normalized_value = v.lower()
        except AttributeError:
            normalized_value = v
        value = _boolean_states.get(normalized_value, v)
        setattr(args, k, value)
    return args
