public class ParamParser.Param extends Object
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 argumment-less option flag or a "word" type (String that is a
sequence of one or more non-whitespace characters). 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 named foo-v:foo:int - integer flag named foofoo - string (word) parameterfoo:int - int parameterfoo? - optional final parameterfoo* - array of zero or more final parametersfoo+ - array of one or more final parametersfoo:int+ - array of one or more final int parameters| Constructor and Description |
|---|
ParamParser.Param(String spec) |
public ParamParser.Param(String spec)
Copyright © 2016. All rights reserved.