-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface CliClass annotation used to declaratively specify a CLI
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnameSets the name of the CLI i.e.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>[]commandsDefines the classes that provide top-level commands for the CLIjava.lang.Class<?>defaultCommandDefines the class that provides the default command for the CLIjava.lang.StringdescriptionSets the description of the CLIGroup[]groupsDefines command groups for the CLIbooleanincludeDefaultRestrictionsSets whether the default global restrictions are appliedParserparserConfigurationSets the parser configuration for the CLIjava.lang.Class<? extends GlobalRestriction>[]restrictionsDefines the classes that provide global restrictions for the CLI
-
-
-
-
parserConfiguration
Parser parserConfiguration
Sets the parser configuration for the CLI- Returns:
- Parser Configuration
- Default:
- @com.github.rvesse.airline.annotations.Parser
-
-
-
groups
Group[] groups
Defines command groups for the CLI- Returns:
- Command groups
- Default:
- {}
-
-
-
restrictions
java.lang.Class<? extends GlobalRestriction>[] restrictions
Defines the classes that provide global restrictions for the CLI- Returns:
- Global restriction classes
- Default:
- {}
-
-