33 #include <wx/cmdline.h>
67 wxPoint(50, 50), wxSize(900, 500));
70 static const wxCmdLineEntryDesc cmdLineDesc[] = {
71 #if wxCHECK_VERSION(3,0,0)
72 { wxCMD_LINE_PARAM,
"",
"",
"file", wxCMD_LINE_VAL_STRING,
73 wxCMD_LINE_PARAM_OPTIONAL | wxCMD_LINE_PARAM_MULTIPLE },
75 { wxCMD_LINE_NONE,
"",
"",
"", wxCMD_LINE_VAL_STRING, 0}
77 { wxCMD_LINE_PARAM, _T(
""), _T(
""), _T(
"file"), wxCMD_LINE_VAL_STRING,
78 wxCMD_LINE_PARAM_OPTIONAL | wxCMD_LINE_PARAM_MULTIPLE },
80 { wxCMD_LINE_NONE, _T(
""), _T(
""), _T(
""), wxCMD_LINE_VAL_STRING, 0}
84 wxCmdLineParser parser(cmdLineDesc, argc, argv);
85 int parserStatus = parser.Parse();
86 if (parserStatus != 0) {
91 for (
unsigned int i = 0; i < parser.GetParamCount(); i++) {
92 wxString file = parser.GetParam(i);
95 std::cerr <<
"File '" << fileName <<
"' not found." << std::endl;