| Modifier and Type | Interface and Description |
|---|---|
interface |
BasicCliOptionBuilder
Builder that builds a single option.
|
| Modifier and Type | Method and Description |
|---|---|
CliOptionBuilder |
CliOptionBuilder.addValidation(java.util.function.Predicate<Cli> validationRule,
java.util.function.Function<Cli,String> errorMessageFunction)
Add an additional validation rule to this option Builder.
|
CliOptionBuilder |
CliOptionBuilder.addValidation(java.util.function.Predicate<Cli> validationRule,
String errorMessage)
Add an additional validation rule to this option Builder.
|
static CliOptionBuilder |
CliSpecification.group(CliOptionBuilder... options)
Create a new group of options where the specification is
only valid if either all the required options in the group are present,
or none of them are present.
|
static CliOptionBuilder |
CliSpecification.radio(CliOptionBuilder... radioOptions)
Create a new Radio group of options where the specification
is only valid if only one of the given options
can be selected.
|
CliOptionBuilder |
CliOptionBuilder.setRequired(boolean isRequired)
Is this Option required.
|
| Modifier and Type | Method and Description |
|---|---|
static CliSpecification |
CliSpecification.create(CliOptionBuilder... options)
Create a new
CliSpecification with the given options. |
static CliSpecification |
CliSpecification.createWithHelp(CliOptionBuilder... options)
Create a new
CliSpecification with a default help option
with the option name "-h" and long name "--help" along with the given other options. |
static CliOptionBuilder |
CliSpecification.group(CliOptionBuilder... options)
Create a new group of options where the specification is
only valid if either all the required options in the group are present,
or none of them are present.
|
static CliOptionBuilder |
CliSpecification.radio(CliOptionBuilder... radioOptions)
Create a new Radio group of options where the specification
is only valid if only one of the given options
can be selected.
|
Copyright © 2019 NIH/NCATS. All rights reserved.