+void wxBBEditorApp::OnInitCmdLine(wxCmdLineParser& parser)
+{
+ // std::cout << "wxBBEditorApp::OnInitCmdLine"<<std::endl;
+ parser.SetDesc(cmdLineDesc);
+}
+
+
+bool wxBBEditorApp::OnCmdLineParsed(wxCmdLineParser& parser)
+{
+ int argc = parser.GetParamCount();
+ for (int i=0; i<argc; ++i)
+ {
+ std::string s = bbtk::wx2std(parser.GetParam(i));
+ input_file.push_back(s);
+ }
+
+ bool help = ( parser.Found(_T("h")) );
+ usage = (help && (input_file.size()==0));
+ if (usage) {
+ std::cout << "bbEditor (The Black Box Development Graphic Editor) - bbtk "
+ << bbtk::GetVersion() << " - (c) Creatis 2013"
+ << std::endl;
+ parser.Usage();
+ }
+ return true;
+}
+
+
+
+