Changes in src/builder.cpp [a356f2:326bbe]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
ra356f2 r326bbe 114 114 // print version check whether arguments are present at all 115 115 cout << ESPACKVersion << endl; 116 if (argc < 2) {117 cout << "Obtain help with " << argv[0] << " -h." << endl;118 cleanUp();119 Memory::getState();120 return(1);121 }122 123 116 124 117 setVerbosity(0); … … 145 138 } 146 139 // handle remaining arguments by CommandLineParser 147 MapOfActions::getInstance().AddOptionsToParser();148 map <std::string, std::string> ShortFormToActionMap = MapOfActions::getInstance().getShortFormToActionMap();149 CommandLineParser::getInstance().Run(argc,argv, ShortFormToActionMap);150 if (!CommandLineParser::getInstance().isEmpty()) {140 if (argc>1) { 141 MapOfActions::getInstance().AddOptionsToParser(); 142 map <std::string, std::string> ShortFormToActionMap = MapOfActions::getInstance().getShortFormToActionMap(); 143 CommandLineParser::getInstance().Run(argc,argv, ShortFormToActionMap); 151 144 DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl); 152 145 UIFactory::registerFactory(new CommandLineUIFactory::description());
Note:
See TracChangeset
for help on using the changeset viewer.