Changes in src/builder.cpp [4cf323d:b59da6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
r4cf323d rb59da6 76 76 77 77 #include "bondgraph.hpp" 78 #include "CommandLineParser.hpp"79 78 #include "config.hpp" 80 79 #include "Helpers/Log.hpp" … … 85 84 #include "UIElements/TextUI/TextUIFactory.hpp" 86 85 #include "UIElements/CommandLineUI/CommandLineUIFactory.hpp" 86 #include "UIElements/CommandLineUI/CommandLineParser.hpp" 87 87 #ifdef USE_GUI_QT 88 88 #include "UIElements/Qt4/QtUIFactory.hpp" … … 90 90 #include "UIElements/MainWindow.hpp" 91 91 #include "UIElements/Dialog.hpp" 92 #include "Menu/ActionMenuItem.hpp"92 //#include "Menu/ActionMenuItem.hpp" 93 93 #include "Helpers/Verbose.hpp" 94 94 #include "World.hpp" … … 96 96 #include "Actions/ActionRegistry.hpp" 97 97 #include "Actions/ActionHistory.hpp" 98 #include "Actions/MapOfActions.hpp"99 98 100 99 #include "Parser/ChangeTracker.hpp" … … 119 118 errorLogger::purgeInstance(); 120 119 UIFactory::purgeInstance(); 121 MapOfActions::purgeInstance();120 ValueStorage::purgeInstance(); 122 121 CommandLineParser::purgeInstance(); 123 122 ActionRegistry::purgeInstance(); 123 OptionRegistry::purgeInstance(); 124 124 ActionHistory::purgeInstance(); 125 125 #ifdef LOG_OBSERVER … … 174 174 // handle remaining arguments by CommandLineParser 175 175 if (argc>1) { 176 MapOfActions::getInstance().AddOptionsToParser(); 177 map <std::string, std::string> ShortFormToActionMap = MapOfActions::getInstance().getShortFormToActionMap(); 178 CommandLineParser::getInstance().Run(argc,argv, ShortFormToActionMap); 176 CommandLineParser::getInstance().InitializeCommandArguments(); 177 CommandLineParser::getInstance().Run(argc,argv); 179 178 DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl); 180 179 UIFactory::registerFactory(new CommandLineUIFactory::description());
Note:
See TracChangeset
for help on using the changeset viewer.