From 31a06b07cce898a22d0ca3992501e85da9c22f13 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 9 Oct 2001 22:07:34 +0000 Subject: [PATCH] minor additions to wxCmdLineParser tests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/console/console.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/samples/console/console.cpp b/samples/console/console.cpp index a5437eb7c0..7795300fae 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -43,7 +43,7 @@ //#define TEST_ARRAYS //#define TEST_CHARSET -//#define TEST_CMDLINE +#define TEST_CMDLINE //#define TEST_DATETIME //#define TEST_DIR //#define TEST_DLLLOADER @@ -4904,13 +4904,17 @@ int main(int argc, char **argv) #ifdef TEST_CMDLINE static const wxCmdLineEntryDesc cmdLineDesc[] = { + { wxCMD_LINE_SWITCH, _T("h"), _T("help"), "show this help message", + wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP }, { wxCMD_LINE_SWITCH, "v", "verbose", "be verbose" }, { wxCMD_LINE_SWITCH, "q", "quiet", "be quiet" }, { wxCMD_LINE_OPTION, "o", "output", "output file" }, { wxCMD_LINE_OPTION, "i", "input", "input dir" }, - { wxCMD_LINE_OPTION, "s", "size", "output block size", wxCMD_LINE_VAL_NUMBER }, - { wxCMD_LINE_OPTION, "d", "date", "output file date", wxCMD_LINE_VAL_DATE }, + { wxCMD_LINE_OPTION, "s", "size", "output block size", + wxCMD_LINE_VAL_NUMBER }, + { wxCMD_LINE_OPTION, "d", "date", "output file date", + wxCMD_LINE_VAL_DATE }, { wxCMD_LINE_PARAM, NULL, NULL, "input file", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_MULTIPLE }, -- 2.45.2