Changeset 772b300


Ignore:
Timestamp:
Dec 28, 2020, 3:49:56 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b6460bf, bf1914e
Parents:
06573b2
Message:

Parse args now supports -oValue, -o=Value and -o Value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    r06573b2 r772b300  
    105105                                        if(opt == options[i].short_name) {
    106106                                                const char * arg = optarg ? optarg : "";
     107                                                if( arg[0] == '=' ) { arg++; }
    107108                                                bool success = options[i].parse( arg, options[i].variable );
    108109                                                if(success) continue NEXT_ARG;
Note: See TracChangeset for help on using the changeset viewer.