X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a994742ab93d8cf6033f19dd7370553efb64a0f..edb89f7e356761b4fbdaebb8b5ebd5c7a7643da7:/samples/console/console.cpp diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 8a75d830ab..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 @@ -58,13 +58,13 @@ //#define TEST_LIST //#define TEST_LOCALE //#define TEST_LOG -#define TEST_LONGLONG +//#define TEST_LONGLONG //#define TEST_MIME //#define TEST_PATHLIST //#define TEST_REGCONF //#define TEST_REGEX //#define TEST_REGISTRY -//#define TEST_SNGLINST +#define TEST_SNGLINST //#define TEST_SOCKETS //#define TEST_STREAMS //#define TEST_STRINGS @@ -1366,7 +1366,7 @@ static void TestMimeAssociate() static void TestDiskInfo() { - puts("*** Testing wxGetDiskSpace() ***\n"); + puts("*** Testing wxGetDiskSpace() ***"); for ( ;; ) { @@ -1385,9 +1385,9 @@ static void TestDiskInfo() } else { - wxPrintf(_T("%s total bytes, %s free bytes on '%s'.\n"), - total.ToString().c_str(), - free.ToString().c_str(), + wxPrintf(_T("%sKb total, %sKb free on '%s'.\n"), + (total / 1024).ToString().c_str(), + (free / 1024).ToString().c_str(), pathname); } } @@ -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 },