Changeset 10805 for trunk/FACT++/src
- Timestamp:
- 05/24/11 19:34:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/test3.cc
r10669 r10805 2 2 #include <boost/filesystem.hpp> 3 3 4 #include "FACT.h"5 4 #include "Dim.h" 6 5 #include "Shell.h" … … 82 81 vm = conf.Parse(argc, argv); 83 82 } 84 catch (std::exception &e) 83 #if BOOST_VERSION > 104000 84 catch (po::multiple_occurrences &e) 85 85 { 86 #if BOOST_VERSION > 104000 87 po::multiple_occurrences *MO = dynamic_cast<po::multiple_occurrences*>(&e); 88 if (MO) 89 cout << "Error: " << e.what() << " of '" << MO->get_option_name() << "' option." << endl; 90 else 86 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 87 return -1; 88 } 91 89 #endif 92 cout << "Error: " << e.what() << endl;93 cout << endl;94 90 catch (exception& e) 91 { 92 cerr << "Program options invalid due to: " << e.what() << endl; 95 93 return -1; 96 94 } 97 95 98 if (conf.Has Print())96 if (conf.HasVersion() || conf.HasPrint()) 99 97 return -1; 100 101 if (conf.HasVersion())102 {103 FACT::PrintVersion(argv[0]);104 return -1;105 }106 98 107 99 if (conf.HasHelp())
Note:
See TracChangeset
for help on using the changeset viewer.