public class Option extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
arguments |
String |
description |
String |
longName |
boolean |
required |
String |
shortName |
boolean |
used |
List<String> |
values |
| Constructor and Description |
|---|
Option(String longName,
String shortName) |
Option(String longName,
String shortName,
boolean required) |
Option(String longName,
String shortName,
boolean optional,
int arguments) |
Option(String longName,
String shortName,
boolean required,
int arguments,
String description)
Constructor for Option, given a full set of parameters.
|
Option(String longName,
String shortName,
String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String value) |
Integer |
getInteger() |
double |
getRealSum() |
String |
getString() |
String |
getString(boolean doSpaces) |
List<String> |
getStrings() |
int |
getSum() |
boolean |
isUsed() |
void |
setUsed() |
public String longName
public String shortName
public int arguments
public boolean used
public boolean required
public String description
public Option(String longName, String shortName, boolean required, int arguments, String description)
longName - The long name for an option. Multiple characters.shortName - The short name of an option. A single character.required - Is the option required? true / false.arguments - How many arguments does the option have? 0 ... ndescription - A description for the display method.Copyright © 2018. All rights reserved.