Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    ra356f2 r326bbe  
    114114  // print version check whether arguments are present at all
    115115  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 
    123116
    124117  setVerbosity(0);
     
    145138    }
    146139    // 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);
    151144      DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl);
    152145      UIFactory::registerFactory(new CommandLineUIFactory::description());
Note: See TracChangeset for help on using the changeset viewer.