Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r4cf323d rb59da6  
    7676
    7777#include "bondgraph.hpp"
    78 #include "CommandLineParser.hpp"
    7978#include "config.hpp"
    8079#include "Helpers/Log.hpp"
     
    8584#include "UIElements/TextUI/TextUIFactory.hpp"
    8685#include "UIElements/CommandLineUI/CommandLineUIFactory.hpp"
     86#include "UIElements/CommandLineUI/CommandLineParser.hpp"
    8787#ifdef USE_GUI_QT
    8888#include "UIElements/Qt4/QtUIFactory.hpp"
     
    9090#include "UIElements/MainWindow.hpp"
    9191#include "UIElements/Dialog.hpp"
    92 #include "Menu/ActionMenuItem.hpp"
     92//#include "Menu/ActionMenuItem.hpp"
    9393#include "Helpers/Verbose.hpp"
    9494#include "World.hpp"
     
    9696#include "Actions/ActionRegistry.hpp"
    9797#include "Actions/ActionHistory.hpp"
    98 #include "Actions/MapOfActions.hpp"
    9998
    10099#include "Parser/ChangeTracker.hpp"
     
    119118  errorLogger::purgeInstance();
    120119  UIFactory::purgeInstance();
    121   MapOfActions::purgeInstance();
     120  ValueStorage::purgeInstance();
    122121  CommandLineParser::purgeInstance();
    123122  ActionRegistry::purgeInstance();
     123  OptionRegistry::purgeInstance();
    124124  ActionHistory::purgeInstance();
    125125#ifdef LOG_OBSERVER
     
    174174    // handle remaining arguments by CommandLineParser
    175175    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);
    179178      DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl);
    180179      UIFactory::registerFactory(new CommandLineUIFactory::description());
Note: See TracChangeset for help on using the changeset viewer.