Changeset 996
- Timestamp:
- Dec 3, 2007, 8:32:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/OptionSwitch.cc
r981 r996 42 42 std::vector<std::string>::iterator last) 43 43 { 44 if (long_name().size()>3 && long_name().substr(0,3)!="no-") 45 switch_=false; 46 else 47 switch_=true; 44 48 do_parse2(first, last); 45 49 } … … 57 61 if (long_name().size()){ 58 62 str = " --"; 59 if (def_ && long_name().s ubstr(0,3)!="no-")63 if (def_ && long_name().size()>3 && long_name().substr(0,3)!="no-") 60 64 str += "no-"; 61 65 str += long_name();
Note: See TracChangeset
for help on using the changeset viewer.