]> git.saurik.com Git - wxWidgets.git/commitdiff
show default values of the options in the usage message
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Aug 2008 14:22:13 +0000 (14:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Aug 2008 14:22:13 +0000 (14:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/benchmarks/bench.cpp

index ea9f5c9bbd5d325c588f1893bebb097e388426f9..67005abab86db6cb0b3385bdc002c586f7409985 100644 (file)
@@ -107,11 +107,20 @@ void BenchApp::OnInitCmdLine(wxCmdLineParser& parser)
 
     parser.AddOption(OPTION_AVG_COUNT,
                      "avg-count",
-                     "number of times to run benchmarking loop",
+                     wxString::Format
+                     (
+                        "number of times to run benchmarking loop (default: %ld)",
+                        m_avgCount
+                     ),
                      wxCMD_LINE_VAL_NUMBER);
     parser.AddOption(OPTION_NUM_RUNS,
                      "num-runs",
-                     "number of times to run each benchmark in a loop",
+                     wxString::Format
+                     (
+                         "number of times to run each benchmark in a loop "
+                         "(default: %ld)",
+                         m_numRuns
+                     ),
                      wxCMD_LINE_VAL_NUMBER);
     parser.AddParam("benchmark name",
                     wxCMD_LINE_VAL_STRING,