| Modifier and Type | Method and Description |
|---|---|
CliSpecification |
CliSpecification.addValidation(Predicate<Cli> validationRule,
Function<Cli,String> errorMessageFunction)
Add an additional validation rule to this overall specification.
|
CliSpecification |
CliSpecification.addValidation(Predicate<Cli> validationRule,
String errorMessage)
Add an additional validation rule to this overall specification.
|
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. |
CliSpecification |
CliSpecification.description(String description)
Sets a description to this usage to describe what this program
does.
|
CliSpecification |
CliSpecification.example(String options,
String explanation)
Sets the footer that will be printed at the bottom of this usage.
|
CliSpecification |
CliSpecification.footer(String footer)
Sets the footer that will be printed at the bottom of this usage.
|
CliSpecification |
CliSpecification.programName(String programName)
Sets this program name to this usage.
|
Copyright © 2020 NIH/NCATS. All rights reserved.