Add --help option
This commit is contained in:
parent
faec3cd961
commit
84eff99fde
1 changed files with 24 additions and 25 deletions
|
@ -262,32 +262,31 @@ void LoadTest::defineOptions(OptionSet& options)
|
|||
{
|
||||
Application::defineOptions(options);
|
||||
|
||||
options.addOption(
|
||||
Option("doclist", "", "file containing URIs or pathnames of documents to load, - for stdin")
|
||||
options.addOption(Option("help", "", "Display help information on command line arguments.")
|
||||
.required(false)
|
||||
.repeatable(false));
|
||||
|
||||
options.addOption(Option("doclist", "", "file containing URIs or pathnames of documents to load, - for stdin")
|
||||
.required(true)
|
||||
.repeatable(false)
|
||||
.argument("file"));
|
||||
|
||||
options.addOption(
|
||||
Option("numclients", "", "number of simultaneous clients to simulate")
|
||||
options.addOption(Option("numclients", "", "number of simultaneous clients to simulate")
|
||||
.required(false)
|
||||
.repeatable(false)
|
||||
.argument("number"));
|
||||
|
||||
options.addOption(
|
||||
Option("numdocs", "", "number of sequential documents per client")
|
||||
options.addOption(Option("numdocs", "", "number of sequential documents per client")
|
||||
.required(false)
|
||||
.repeatable(false)
|
||||
.argument("number"));
|
||||
|
||||
options.addOption(
|
||||
Option("duration", "", "duration in hours")
|
||||
options.addOption(Option("duration", "", "duration in hours")
|
||||
.required(false)
|
||||
.repeatable(false)
|
||||
.argument("hours"));
|
||||
|
||||
options.addOption(
|
||||
Option("server", "", "URI of LOOL server")
|
||||
options.addOption(Option("server", "", "URI of LOOL server")
|
||||
.required(false)
|
||||
.repeatable(false)
|
||||
.argument("uri"));
|
||||
|
|
Loading…
Reference in a new issue