Package org.jtool.jxplatform.builder
Class CommandLineOptions
java.lang.Object
org.jtool.jxplatform.builder.CommandLineOptions
Collects command-line options.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandLineOptions
(String[] args) Creates an object that collects command-line options. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Obtains thedouble
for the option having a given key.float
Obtains thefloat
for the option having a given key.int
Obtains theint
value for the option having a given key.long
Obtains thelong
value for the option having a given key.Obtains the string value for the option having a given key.
-
Constructor Details
-
CommandLineOptions
Creates an object that collects command-line options.- Parameters:
args
- the command line parameters
-
-
Method Details
-
get
Obtains the string value for the option having a given key.- Parameters:
key
- the key for the optiondefaultValue
- the specified default value- Returns:
- the string value of the option
-
get
Obtains theint
value for the option having a given key.- Parameters:
key
- the key for the optiondefaultValue
- the specified default value- Returns:
- the
int
value of the option
-
get
Obtains thelong
value for the option having a given key.- Parameters:
key
- the key for the optiondefaultValue
- the specified default value- Returns:
- the
long
value of the option
-
get
Obtains thefloat
for the option having a given key.- Parameters:
key
- the key for the optiondefaultValue
- the specified default value- Returns:
- the
float
value of the option
-
get
Obtains thedouble
for the option having a given key.- Parameters:
key
- the key for the optiondefaultValue
- the specified default value- Returns:
- the
double
value of the option
-