Changeset 210:81cfc04531e8 in lemon-1.2 for lemon/arg_parser.cc
- Timestamp:
- 07/13/08 21:09:47 (17 years ago)
- Branch:
- default
- Children:
- 211:542dd614cbb4, 212:1ae84dea7d09, 214:60eecd3fe37a, 216:6d7bfcf5b48e
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/arg_parser.cc
r209 r210 396 396 if(_opts.find(*o)->second.set) ++set; 397 397 if(i->second.mandatory&&!set) { 398 std::cerr << _command_name 399 <<": At least one of the following arguments is mandatory.\n";398 std::cerr << _command_name << 399 ": At least one of the following arguments is mandatory.\n"; 400 400 ok=false; 401 401 for(GroupData::Opts::iterator o=i->second.opts.begin(); … … 404 404 } 405 405 if(i->second.only_one&&set>1) { 406 std::cerr << _command_name 407 <<": At most one of the following arguments can be given.\n";406 std::cerr << _command_name << 407 ": At most one of the following arguments can be given.\n"; 408 408 ok=false; 409 409 for(GroupData::Opts::iterator o=i->second.opts.begin();
Note: See TracChangeset
for help on using the changeset viewer.