protected static class CommandLineParser.CommandLineOption extends Object
| Constructor and Description |
|---|
CommandLineParser.CommandLineOption(String option,
boolean expectsArgs,
String comment,
String argument,
boolean mandatory,
String formatRegexp)
Create a command line option object that holds specific information about a command line option.
|
public CommandLineParser.CommandLineOption(String option, boolean expectsArgs, String comment, String argument, boolean mandatory, String formatRegexp)
option - The text that matches the option.expectsArgs - Whether or not the option expects arguments. It is a flag if this is false.comment - A comment explaining how to use this option.argument - A short reminder of the format of the argument to this option/mandatory - Set to true if this option is mandatory.formatRegexp - The regular expression that the argument to this option must meet to be valid.Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.