Exemple #1
0
void OptionParser::Run(int& argc, const char** argv)
{
    try { Run_(argc, argv); }
    catch (const InvalidParam& p)
    {
        *os << *boost::get_error_info<ProcessedOption>(p) << ": "
            << p.what() << std::endl;
        throw Exit{false};
    }
}
Exemple #2
0
void
Module::Call( )
{
	if ( !isInitialized_ )
	{
		Initialize_();
	}
	else if( doShutdown_ )
	{
		Shutdown_();
	}
	else
	{
		Run_();
	}
}