| | Create an Int Flag.
shortName is the one-character name, can be NIL.
longName is the longer name, to be used after "--", can be NIL
shortName and longName can't both be NIL.
default is the default value, used when the flag is not present.
doc is displayed for this flag with the --help argument.
|
| Allow the flag to appear more than once.
Returns THIS, so that it can be used in a declaration like this:
ARG.String name = NEW("n", "name", "", "the name").enableRepeat()
The value of the last flag will then
be stored and can be obtained with get() and value(),
getList() and valueList() return a list with all the values and
presentCount() returns the number of times the flag appears.
This must be invoked in EarlyInit() or earlier.
|
| Return the value.
When the flag was not encountered it will be the specified default.
Can only be used after EarlyInit(), when ARG.Ready is TRUE.
|
| Return the list of values.
When the flag was not encountered it will be an empty list
Otherwise the list contains all the values encountered.
When a flag doesn't have a value, the default value is used.
Can only be used after EarlyInit(), when ARG.Ready is TRUE.
|
| Return the value.
When the flag was not encountered it will be the specified default.
Can only be used after EarlyInit(), when ARG.Ready is TRUE.
|
| Return the list of values.
When the flag was not encountered it will be an empty list
Otherwise the list contains all the values encountered.
When a flag doesn't have a value, the default value is used.
Can only be used after EarlyInit(), when ARG.Ready is TRUE.
|
|