Package com.sampullara.cli
Annotation Interface Argument
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionEach argument can have an aliasA delimiter for arguments that are multi-valued.A description of the argument that will appear in the usage methodEach argument can be read from environment variable.This is the prefix expected for the argumentbooleanIf this is true, then the argument must be set or the parse will failThis is the actual command line argument itself
-
Element Details
-
value
String valueThis is the actual command line argument itself- Default:
""
-
required
boolean requiredIf this is true, then the argument must be set or the parse will fail- Default:
false
-
prefix
String prefixThis is the prefix expected for the argument- Default:
"-"
-
alias
String aliasEach argument can have an alias- Default:
""
-
envvar
String envvarEach argument can be read from environment variable.- Default:
""
-
description
String descriptionA description of the argument that will appear in the usage method- Default:
""
-
delimiter
String delimiterA delimiter for arguments that are multi-valued.- Default:
","
-
valuesProvider
- Default:
com.sampullara.cli.Argument.DummyCallable.class
-