Class ArgsParser
- java.lang.Object
-
- io.github.erdos.stencil.standalone.ArgsParser
-
public class ArgsParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArgsParser.ParamMarker<T>
static class
ArgsParser.ParseResult
-
Constructor Summary
Constructors Constructor Description ArgsParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgsParser.ParamMarker<java.lang.Boolean>
addFlagOption(char shortName, java.lang.String longName, java.lang.String description)
<T> ArgsParser.ParamMarker<T>
addParam(char shortForm, java.lang.String longForm, java.lang.String description, java.util.function.Function<java.lang.String,T> parser)
ArgsParser.ParseResult
parse(java.lang.String... args)
-
-
-
Method Detail
-
addParam
public <T> ArgsParser.ParamMarker<T> addParam(char shortForm, java.lang.String longForm, java.lang.String description, java.util.function.Function<java.lang.String,T> parser)
-
parse
public ArgsParser.ParseResult parse(java.lang.String... args)
-
addFlagOption
public ArgsParser.ParamMarker<java.lang.Boolean> addFlagOption(char shortName, java.lang.String longName, java.lang.String description)
-
-