static const wxCmdLineEntryDesc cmdLineDesc[] =
{
+ { wxCMD_LINE_SWITCH, _T("d"), _T("debug"), _T("Debug messages on (message All 9)") },
{ wxCMD_LINE_SWITCH, _T("c"), _T("command"), _T("turn to command line mode after file(s) processing") },
{ wxCMD_LINE_SWITCH, _T("q"), _T("quiet"), _T("be quiet") },
{ wxCMD_LINE_SWITCH, _T("h"), _T("help"), _T("print help") },
int argc;
std::vector<std::string> argv;
bool command;
+ bool debug;
bool quiet;
bool help;
bool graphical_dialog;
bool wxBBIApp::OnCmdLineParsed(wxCmdLineParser& parser)
{
+ debug = ( parser.Found(_T("d")) );
quiet = ( parser.Found(_T("q")) );
help = ( parser.Found(_T("h")) );
graphical_dialog = ( parser.Found(_T("g")) );
//See http://www.wxwindows.org/faqgtk.htm#locale
setlocale(LC_NUMERIC, "C");
#endif
+
+ if (quiet) bbtk::MessageManager::SetMessageLevel("All",0);
+ if (debug) bbtk::MessageManager::SetMessageLevel("All",9);
+
-
bbtk::WxConsole *I = new bbtk::WxConsole(0,_T("bbi"),wxSize(600,400));
SetTopWindow(I);
if (!no_command) I->Show(true);