Changeset 11230
- Timestamp:
- 07/01/11 08:49:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/fact.cc
r10646 r11230 54 54 vm = conf.Parse(argc, argv); 55 55 } 56 catch (std::exception &e) 56 #if BOOST_VERSION > 104000 57 catch (po::multiple_occurrences &e) 57 58 { 58 #if BOOST_VERSION > 104000 59 po::multiple_occurrences *MO = dynamic_cast<po::multiple_occurrences*>(&e); 60 if (MO) 61 cout << "Error: " << e.what() << " of '" << MO->get_option_name() << "' option." << endl; 62 else 59 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 60 return -1; 61 } 63 62 #endif 64 cout << "Error: " << e.what() << endl;65 cout << endl;66 63 catch (exception& e) 64 { 65 cerr << "Program options invalid due to: " << e.what() << endl; 67 66 return -1; 68 67 } 69 68 70 if (conf.Has Print())69 if (conf.HasVersion() || conf.HasPrint()) 71 70 return -1; 72 73 if (conf.HasVersion())74 {75 FACT::PrintVersion(argv[0]);76 return -1;77 }78 71 79 72 if (conf.HasHelp())
Note:
See TracChangeset
for help on using the changeset viewer.