Changes in src/builder.cpp [326bbe:a356f2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
r326bbe ra356f2 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 116 123 117 124 setVerbosity(0); … … 138 145 } 139 146 // handle remaining arguments by CommandLineParser 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);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()) { 144 151 DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl); 145 152 UIFactory::registerFactory(new CommandLineUIFactory::description());
Note:
See TracChangeset
for help on using the changeset viewer.