Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    r772b300 r433d352  
    105105                                        if(opt == options[i].short_name) {
    106106                                                const char * arg = optarg ? optarg : "";
    107                                                 if( arg[0] == '=' ) { arg++; }
    108107                                                bool success = options[i].parse( arg, options[i].variable );
    109108                                                if(success) continue NEXT_ARG;
     
    186185}
    187186
    188 bool parse_truefalse(const char * arg, bool & value) {
    189         if(strcmp(arg, "true") == 0) {
    190                 value = true;
    191                 return true;
    192         }
    193 
    194         if(strcmp(arg, "false") == 0) {
    195                 value = false;
    196                 return true;
    197         }
    198 
    199         return false;
    200 }
    201 
    202187bool parse_settrue (const char *, bool & value ) {
    203188        value = true;
Note: See TracChangeset for help on using the changeset viewer.