public class ToolsOption
extends org.apache.commons.cli.Option
| Constructor and Description | 
|---|
ToolsOption(Flag flag)
Constructor. 
 | 
ToolsOption(String opt,
           String longOpt,
           String description)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
hasArg(String name,
      Object type)
Requires a single argument to follow the option. 
 | 
void | 
hasArg(String name,
      Object type,
      boolean isOptional)
Allows a single argument to be passed into the option. 
 | 
void | 
hasArgs(int numArgs,
       String name,
       Object type,
       char separator,
       boolean isOptional)
Defines an argument's "properties" for an option. 
 | 
void | 
hasArgs(String name,
       Object type)
Requires an argument to follow the option. 
 | 
void | 
hasArgs(String name,
       Object type,
       char separator)
Requires an argument to follow the option. 
 | 
void | 
hasArgs(String name,
       Object type,
       char separator,
       boolean isOptional)
Allows multiple arguments to be passed in to the option. 
 | 
addValue, clone, equals, getArgName, getArgs, getDescription, getId, getLongOpt, getOpt, getType, getValue, getValue, getValue, getValues, getValueSeparator, getValuesList, hasArg, hasArgName, hasArgs, hashCode, hasLongOpt, hasOptionalArg, hasValueSeparator, isRequired, setArgName, setArgs, setDescription, setLongOpt, setOptionalArg, setRequired, setType, setValueSeparator, toStringpublic ToolsOption(Flag flag)
flag - An object representation of the command-line flag option.public void hasArg(String name, Object type)
name - Sets the display name of the argument value.type - Sets the data type allowed for this argument.public void hasArg(String name, Object type, boolean isOptional)
name - Sets the display name of the argument value.type - Sets the data type allowed for this argument.isOptional - Set to 'true' if the argument is optional, 'false' otherwise.public void hasArgs(int numArgs,
           String name,
           Object type,
           char separator,
           boolean isOptional)
numArgs - Max number of arguments allowed.name - Sets the display name of the argument value.type - Sets the data type allowed for this argument.separator - Sets the separator value allowed in between the argument
            values being passed in.isOptional - Set to 'true' if an argument is optional, 'false' otherwise.public void hasArgs(String name, Object type)
name - Sets the display name of the argument value.type - Sets the data type allowed for this argument.public void hasArgs(String name, Object type, char separator)
name - Sets the display name of the argument value.type - Sets the data type allowed for this argument.separator - Sets the separator value allowed in between the argument
            values being passed in.public void hasArgs(String name, Object type, char separator, boolean isOptional)
name - Sets the display name of the argument value.type - Sets the data type allowed for this argument.separator - Sets the separator value allowed in between the argument
            values being passed in.isOptional - Set to 'true' if an argument is optional, 'false' otherwise.Copyright © 2010–2017 Planetary Data System. All rights reserved.