| Modifier and Type | Field and Description |
|---|---|
protected Map<String,HelpSection> |
CliBuilder.baseHelpSections |
| Modifier and Type | Method and Description |
|---|---|
CliBuilder<C> |
CliBuilder.withHelpSection(HelpSection section) |
| Modifier and Type | Method and Description |
|---|---|
void |
CliUsageHelper.outputHelpSection(UsagePrinter out,
HelpSection section)
Outputs a help section
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractCommandUsageGenerator.findHelpSections(CommandMetadata command,
List<HelpSection> preSections,
List<HelpSection> postSections)
Finds the help sections
|
protected void |
AbstractCommandUsageGenerator.findHelpSections(CommandMetadata command,
List<HelpSection> preSections,
List<HelpSection> postSections)
Finds the help sections
|
protected void |
AbstractGlobalUsageGenerator.findHelpSections(GlobalMetadata<T> global,
List<HelpSection> preSections,
List<HelpSection> postSections)
Finds the help sections
|
protected void |
AbstractGlobalUsageGenerator.findHelpSections(GlobalMetadata<T> global,
List<HelpSection> preSections,
List<HelpSection> postSections)
Finds the help sections
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicSection |
class |
DiscussionSection |
class |
ExamplesSection |
class |
ExitCodesSection |
class |
ProseSection |
class |
VersionSection |
| Modifier and Type | Method and Description |
|---|---|
HelpSection |
HelpSectionFactory.createSection(Annotation annotation)
Tries to create a section from the given annotation
|
HelpSection |
CommonSectionsFactory.createSection(Annotation annotation) |
static HelpSection |
HelpSectionRegistry.getHelpSection(Class<? extends Annotation> cls,
Annotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
List<HelpSection> |
GlobalMetadata.getBaseHelpSections()
Gets the base help sections used by all commands unless specifically
overridden by individual commands
|
List<HelpSection> |
CommandMetadata.getHelpSections()
Gets the additional help sections
|
protected static Map<String,HelpSection> |
MetadataLoader.loadHelpSections(Class<?> sourceClass,
Map<String,HelpSection> baseHelpSections) |
| Modifier and Type | Method and Description |
|---|---|
static CommandMetadata |
MetadataLoader.loadCommand(Class<?> commandType,
Map<String,HelpSection> baseHelpSections)
Loads command meta-data
|
static <T> List<CommandMetadata> |
MetadataLoader.loadCommands(Iterable<Class<? extends T>> defaultCommands,
Map<String,HelpSection> baseHelpSections)
Loads command meta-data
|
static void |
MetadataLoader.loadCommandsIntoGroupsByAnnotation(List<CommandMetadata> allCommands,
List<CommandGroupMetadata> commandGroups,
List<CommandMetadata> defaultCommandGroup,
Map<String,HelpSection> baseHelpSections) |
static <C> GlobalMetadata<C> |
MetadataLoader.loadGlobal(String name,
String description,
CommandMetadata defaultCommand,
Iterable<CommandMetadata> defaultGroupCommands,
Iterable<CommandGroupMetadata> groups,
Iterable<GlobalRestriction> restrictions,
Iterable<HelpSection> baseHelpSections,
ParserMetadata<C> parserConfig)
Loads global meta-data
|
protected static Map<String,HelpSection> |
MetadataLoader.loadHelpSections(Class<?> sourceClass,
Map<String,HelpSection> baseHelpSections) |
| Constructor and Description |
|---|
CommandMetadata(String name,
String description,
boolean hidden,
Iterable<OptionMetadata> globalOptions,
Iterable<OptionMetadata> groupOptions,
Iterable<OptionMetadata> commandOptions,
OptionMetadata defaultOption,
ArgumentsMetadata arguments,
Iterable<Accessor> metadataInjections,
Class<?> type,
List<String> groupNames,
List<Group> groups,
List<HelpSection> sections) |
GlobalMetadata(String name,
String description,
Iterable<OptionMetadata> options,
CommandMetadata defaultCommand,
Iterable<CommandMetadata> defaultGroupCommands,
Iterable<CommandGroupMetadata> commandGroups,
Iterable<GlobalRestriction> restrictions,
Iterable<HelpSection> baseHelpSections,
ParserMetadata<T> parserConfig) |
| Modifier and Type | Method and Description |
|---|---|
int |
HelpSectionComparator.compare(HelpSection o1,
HelpSection o2) |
Copyright © 2012–2022. All rights reserved.