Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    rb59da6 r4cf323d  
    7676
    7777#include "bondgraph.hpp"
     78#include "CommandLineParser.hpp"
    7879#include "config.hpp"
    7980#include "Helpers/Log.hpp"
     
    8485#include "UIElements/TextUI/TextUIFactory.hpp"
    8586#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"
    9899
    99100#include "Parser/ChangeTracker.hpp"
     
    118119  errorLogger::purgeInstance();
    119120  UIFactory::purgeInstance();
    120   ValueStorage::purgeInstance();
     121  MapOfActions::purgeInstance();
    121122  CommandLineParser::purgeInstance();
    122123  ActionRegistry::purgeInstance();
    123   OptionRegistry::purgeInstance();
    124124  ActionHistory::purgeInstance();
    125125#ifdef LOG_OBSERVER
     
    174174    // handle remaining arguments by CommandLineParser
    175175    if (argc>1) {
    176       CommandLineParser::getInstance().InitializeCommandArguments();
    177       CommandLineParser::getInstance().Run(argc,argv);
     176      MapOfActions::getInstance().AddOptionsToParser();
     177      map <std::string, std::string> ShortFormToActionMap = MapOfActions::getInstance().getShortFormToActionMap();
     178      CommandLineParser::getInstance().Run(argc,argv, ShortFormToActionMap);
    178179      DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl);
    179180      UIFactory::registerFactory(new CommandLineUIFactory::description());
Note: See TracChangeset for help on using the changeset viewer.