Ignore:
Timestamp:
07/24/11 21:20:34 (14 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/triggerschedule.cc

    r11268 r11578  
    5858    SetupConfiguration(conf);
    5959
    60     po::variables_map vm;
    61     try
    62     {
    63         vm = conf.Parse(argc, argv);
    64     }
    65 #if BOOST_VERSION > 104000
    66     catch (po::multiple_occurrences &e)
    67     {
    68         cout << "Error: " << e.what() << " of '" << e.get_option_name() << "' option." << endl;
    69         cout << endl;
     60    if (!conf.DoParse(argc, argv, PrintHelp))
    7061        return -1;
    71     }
    72 #endif
    73     catch (std::exception &e)
    74     {
    75         cout << "Error: " << e.what() << endl;
    76         cout << endl;
    77 
    78         return -1;
    79     }
    80 
    81     if (conf.HasVersion() || conf.HasPrint())
    82         return -1;
    83 
    84     if (conf.HasHelp())
    85     {
    86         PrintHelp();
    87         return -1;
    88     }
    8962
    9063    const string dbname = conf.Get<string>("schedule-database-name");
Note: See TracChangeset for help on using the changeset viewer.