Package io.permazen.cli
Class ParamParser.Param
java.lang.Object
io.permazen.cli.ParamParser.Param
- Enclosing class:
- ParamParser
Represents one parsed parameter specification.
String form is -flag:name:type, where the -flag is optional and indicates
an option flag, name is the name of the flag or parameter, and type is optional as well:
if missing, it indicates either an argument-less option flag, or a arbitrary string. Otherwise type
is the name of a parameter type supported by ParamParser.getParser().
Non-option parameters may have a ? suffix if optional,
or a +, or * suffix if repeatable, in which case the result is a List.
Spec string syntax examples:
-v:foo- boolean flag namedfoo-v:foo:int- integer flag namedfoofoo- string (word) parameterfoo:int-intparameterfoo?- optional final parameterfoo*- array of zero or more final parametersfoo+- array of one or more final parametersfoo:int+- array of one or more finalintparameters
-
Constructor Summary
Constructors -
Method Summary