show default values of the options in the usage message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-08-06 14:22:13 +00:00
parent 31004b7405
commit c517ecec15

View File

@@ -107,11 +107,20 @@ void BenchApp::OnInitCmdLine(wxCmdLineParser& parser)
parser.AddOption(OPTION_AVG_COUNT, parser.AddOption(OPTION_AVG_COUNT,
"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); wxCMD_LINE_VAL_NUMBER);
parser.AddOption(OPTION_NUM_RUNS, parser.AddOption(OPTION_NUM_RUNS,
"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); wxCMD_LINE_VAL_NUMBER);
parser.AddParam("benchmark name", parser.AddParam("benchmark name",
wxCMD_LINE_VAL_STRING, wxCMD_LINE_VAL_STRING,