- Timestamp:
- 05/25/11 16:38:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r10820 r10825 39 39 */ 40 40 //**************************************************************** 41 #include "FACT.h"42 41 #include "Dim.h" 43 42 #include "Event.h" … … 2565 2564 vm = conf.Parse(argc, argv); 2566 2565 } 2567 catch (exception &e)2568 {2569 2566 #if BOOST_VERSION > 104000 2570 po::multiple_occurrences *MO = dynamic_cast<po::multiple_occurrences*>(&e); 2571 if (MO) 2572 cout << "Error: " << e.what() << " of '" << MO->get_option_name() << "' option." << endl; 2573 else 2567 catch (po::multiple_occurrences &e) 2568 { 2569 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 2570 return -1; 2571 } 2574 2572 #endif 2575 cout << "Error: " << e.what() << endl;2576 cout << endl;2577 2573 catch (exception& e) 2574 { 2575 cerr << "Program options invalid due to: " << e.what() << endl; 2578 2576 return -1; 2579 2577 } 2580 2578 2581 if (conf.Has Print())2579 if (conf.HasVersion() || conf.HasPrint()) 2582 2580 return -1; 2583 2584 if (conf.HasVersion())2585 {2586 FACT::PrintVersion(argv[0]);2587 return -1;2588 }2589 2581 2590 2582 if (conf.HasHelp())
Note:
See TracChangeset
for help on using the changeset viewer.