Ignore:
Timestamp:
07/24/11 21:20:34 (13 years ago)
Author:
tbretz
Message:
Moved some part of the initialization from main to Configure::DoParse
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/mcp.cc

    r11577 r11578  
    478478    Main::SetupConfiguration(conf);
    479479
    480     po::variables_map vm;
    481     try
    482     {
    483         vm = conf.Parse(argc, argv);
    484     }
    485 #if BOOST_VERSION > 104000
    486     catch (po::multiple_occurrences &e)
    487     {
    488         cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl;
     480    if (!conf.DoParse(argc, argv, PrintHelp))
    489481        return -1;
    490     }
    491 #endif
    492     catch (exception& e)
    493     {
    494         cerr << "Program options invalid due to: " << e.what() << endl;
    495         return -1;
    496     }
    497 
    498     if (conf.HasVersion() || conf.HasPrint())
    499         return -1;
    500 
    501     if (conf.HasHelp())
    502     {
    503         PrintHelp();
    504         return -1;
    505     }
    506482
    507483    //try
Note: See TracChangeset for help on using the changeset viewer.