Package org.strassburger.tui4j.command
Class Option<T>
java.lang.Object
org.strassburger.tui4j.command.Option<T>
-
Constructor Details
-
Option
-
-
Method Details
-
getLongName
-
getShortName
-
getType
-
getDefaultValue
-
of
-
bool
Creates a boolean option.- Parameters:
longName- The long name of the option (e.g., "--verbose")shortName- The short name of the option (e.g., "-v")- Returns:
- An Option instance for a boolean type
-
str
Creates a string option.- Parameters:
longName- The long name of the option (e.g., "--output")shortName- The short name of the option (e.g., "-o")defaultValue- The default value of the option- Returns:
- An Option instance for a string type
-
integer
Creates an integer option.- Parameters:
longName- The long name of the option (e.g., "--count")shortName- The short name of the option (e.g., "-c")defaultValue- The default value of the option- Returns:
- An Option instance for an integer type
-
dbl
Creates a double option.- Parameters:
longName- The long name of the option (e.g., "--threshold")shortName- The short name of the option (e.g., "-t")defaultValue- The default value of the option- Returns:
- An Option instance for a double type
-
flt
Creates a float option.- Parameters:
longName- The long name of the option (e.g., "--ratio")shortName- The short name of the option (e.g., "-r")defaultValue- The default value of the option- Returns:
- An Option instance for a float type
-