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

    r11577 r11578  
    588588    SetupConfiguration(conf);
    589589
    590     po::variables_map vm;
    591     try
    592     {
    593         vm = conf.Parse(argc, argv);
    594     }
    595 #if BOOST_VERSION > 104000
    596     catch (po::multiple_occurrences &e)
    597     {
    598         cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl;
     590    if (!conf.DoParse(argc, argv, PrintHelp))
    599591        return -1;
    600     }
    601 #endif
    602     catch (exception& e)
    603     {
    604         cerr << "Program options invalid due to: " << e.what() << endl;
    605         return -1;
    606     }
    607 
    608     if (conf.HasVersion() || conf.HasPrint())
    609         return -1;
    610 
    611     if (conf.HasHelp())
    612     {
    613         PrintHelp();
    614         return -1;
    615     }
    616592
    617593    //try
Note: See TracChangeset for help on using the changeset viewer.