Changeset 1241 for trunk


Ignore:
Timestamp:
Oct 24, 2010, 2:57:51 AM (11 years ago)
Author:
Peter Johansson
Message:

prefer let exception pass to main from Parameter class rather than catch and exit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r1220 r1241  
    6666  }
    6767
     68
    6869  void Parameter::parse(int argc, char* argv[])
    6970  {
    7071    init();
    71     try {
    72       cmd_.parse(argc, argv);
    73     }
    74     catch (yat::utility::cmd_error& e) {
    75       std::cerr << e.what() << std::endl;
    76       exit (-1);
    77     }
    78 
     72    cmd_.parse(argc, argv);
    7973    set_default();
    80 
    8174    // analyse arguments
    8275    analyse();
Note: See TracChangeset for help on using the changeset viewer.