def _convert_config_to_stdin(config, parser):
keys_empty_values_not_pass = (<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>args = []<EOL>for key, val in config.items(SECTION):<EOL><INDENT>keyp = '<STR_LIT>'.format(key)<EOL>action = parser._option_string_actions[keyp]<EOL>if action.const:<EOL><INDENT>try:<EOL><INDENT>if config.getboolean(SECTION, key):<EOL><INDENT>args.append(keyp)<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>args.extend([keyp, val])  <EOL><DEDENT><DEDENT>elif any([i for i in keys_empty_values_not_pass if i in action.option_strings]):<EOL><INDENT>if val != '<STR_LIT>':<EOL><INDENT>args.extend([keyp, val])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>args.extend([keyp, val])<EOL><DEDENT><DEDENT>return args<EOL>
Convert config options to stdin args.

    Especially boolean values, for more information
    @see https://docs.python.org/3.4/library/configparser.html#supported-datatypes