Uses of Class
org.refcodes.cli.Example
-
Uses of Example in org.refcodes.cli
Modifier and TypeMethodDescriptionstatic Example
static Example[]
Sugar for creating anExample
array from a varargs argument.Modifier and TypeMethodDescriptionArgsParser.getExamples()
Retrieves theExample
instances as added usingArgsParser.addExample(String, Operand...)
.ArgsParserImpl.getExamples()
Retrieves theExample
instances as added usingArgsParser.addExample(String, Operand...)
.Modifier and TypeMethodDescriptionvoid
ArgsParser.addExample
(Example aExample) Adds a usage example by providing a description of the example and the command line arguments required by the example.void
ArgsParserImpl.addExample
(Example aExampleUsage) Adds a usage example by providing a description of the example and the command line arguments required by the example.static Example[]
Sugar for creating anExample
array from a varargs argument.default ArgsParser
ArgsParser.withExample
(Example aExample) Adds a usage example.default ArgsParser
ArgsParser.withExamples
(Example[] aExamples) Adds all the bunch ofExample
elements provided.Modifier and TypeMethodDescriptiondefault ArgsParser
ArgsParser.withExamples
(Collection<Example> aExamples) Adds all the bunch ofExample
elements provided.