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/ftmctrl.cc

    r11577 r11578  
    24442444    SetupConfiguration(conf);
    24452445
    2446     po::variables_map vm;
    2447     try
    2448     {
    2449         vm = conf.Parse(argc, argv);
    2450     }
    2451 #if BOOST_VERSION > 104000
    2452     catch (po::multiple_occurrences &e)
    2453     {
    2454         cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl;
     2446    if (!conf.DoParse(argc, argv, PrintHelp))
    24552447        return -1;
    2456     }
    2457 #endif
    2458     catch (exception& e)
    2459     {
    2460         cerr << "Program options invalid due to: " << e.what() << endl;
    2461         return -1;
    2462     }
    2463 
    2464     if (conf.HasVersion() || conf.HasPrint())
    2465         return -1;
    2466 
    2467     if (conf.HasHelp())
    2468     {
    2469         PrintHelp();
    2470         return -1;
    2471     }
    24722448
    24732449    //try
Note: See TracChangeset for help on using the changeset viewer.