Changeset 10804
- Timestamp:
- 05/24/11 19:34:26 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r10774 r10804 1025 1025 catch (po::multiple_occurrences &e) 1026 1026 { 1027 cout << "Error: " << e.what() << " of '" << e.get_option_name() << "' option." << endl; 1028 cout << endl; 1027 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 1029 1028 return -1; 1030 1029 } 1031 1030 #endif 1032 catch (std::exception &e) 1033 { 1034 cout << "Error: " << e.what() << endl; 1035 cout << endl; 1036 1031 catch (exception& e) 1032 { 1033 cerr << "Program options invalid due to: " << e.what() << endl; 1037 1034 return -1; 1038 1035 } 1039 1036 1040 if (conf.Has Print())1037 if (conf.HasVersion() || conf.HasPrint()) 1041 1038 return -1; 1042 1043 if (conf.HasVersion())1044 {1045 FACT::PrintVersion(argv[0]);1046 return -1;1047 }1048 1039 1049 1040 if (conf.HasHelp()) -
trunk/FACT++/src/fitsloader.cc
r10795 r10804 22 22 */ 23 23 //**************************************************************** 24 #include "FACT.h"25 24 #include "Event.h" 26 25 #include "StateMachineDim.h" … … 681 680 vm = conf.Parse(argc, argv); 682 681 } 682 #if BOOST_VERSION > 104000 683 catch (po::multiple_occurrences &e) 684 { 685 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 686 return -1; 687 } 688 #endif 683 689 catch (exception& e) 684 690 { 685 cout << "Sorry, could not properly parse the program's arguments. returning" << endl; 686 cout << e.what() << endl; 691 cerr << "Program options invalid due to: " << e.what() << endl; 687 692 return -1; 688 693 } 689 694 690 if (conf.HasPrint()) 691 return -1; 692 if (conf.HasVersion()) 693 { 694 FACT::PrintVersion(argv[0]); 695 if (conf.HasVersion() || conf.HasPrint()) 695 696 return -1; 696 }697 697 698 698 if (conf.HasHelp())
Note:
See TracChangeset
for help on using the changeset viewer.