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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user