int main(int argc, char* argv[]) { LOG_CREATE(TRACE, "./debug.log"); analyzeParams(argc, argv); LOG_RELEASE(); return 0; }
int BingoApp::run() { if (int result = analyzeParams()) return result; qsrand(time(nullptr)); switch ( action ) { case Action::call: return call(); case Action::generate: return generate(); case Action::help: return printHelp(cout); case Action::version: return printVersion(cout); case Action::unknown: return 1; } }