Package org.wildfly.prospero.cli
Class CustomHelp
- java.lang.Object
-
- picocli.CommandLine.Help
-
- org.wildfly.prospero.cli.CustomHelp
-
public class CustomHelp extends picocli.CommandLine.HelpModified implementation of usage renderer. This mainly modifies the order of options in the usage message from the default behavior:- print option groups first,
- sort by order argument.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomHelp.CustomHelpFactory-
Nested classes/interfaces inherited from class picocli.CommandLine.Help
picocli.CommandLine.Help.Ansi, picocli.CommandLine.Help.ColorScheme, picocli.CommandLine.Help.Column, picocli.CommandLine.Help.IOptionRenderer, picocli.CommandLine.Help.IParameterRenderer, picocli.CommandLine.Help.IParamLabelRenderer, picocli.CommandLine.Help.Layout, picocli.CommandLine.Help.TextTable, picocli.CommandLine.Help.Visibility
-
-
Constructor Summary
Constructors Constructor Description CustomHelp(picocli.CommandLine.Model.CommandSpec commandSpec, picocli.CommandLine.Help.ColorScheme colorScheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringmakeSynopsisFromParts(int synopsisHeadingLength, picocli.CommandLine.Help.Ansi.Text optionText, picocli.CommandLine.Help.Ansi.Text groupsText, picocli.CommandLine.Help.Ansi.Text endOfOptionsText, picocli.CommandLine.Help.Ansi.Text positionalParamText, picocli.CommandLine.Help.Ansi.Text commandText)Override this to switch positions of groupsText and optionText.Stringsynopsis(int synopsisHeadingLength)Override this to set custom options compatarator and clusterBooleanOptions parameter to false.-
Methods inherited from class picocli.CommandLine.Help
abbreviatedSynopsis, addAllSubcommands, addSubcommand, aliases, allSubcommands, ansi, atFileParameterList, calcLongOptionColumnWidth, colorScheme, commandList, commandList, commandListHeading, commandNamesText, commandSpec, createDefaultLayout, createDefaultLayout, createDefaultOptionRenderer, createDefaultOptionSort, createDefaultParameterRenderer, createDefaultParamLabelRenderer, createDetailedSynopsisCommandText, createDetailedSynopsisEndOfOptionsText, createDetailedSynopsisGroupsText, createDetailedSynopsisOptionsText, createDetailedSynopsisOptionsText, createDetailedSynopsisPositionalsText, createHeading, createMinimalOptionRenderer, createMinimalParameterRenderer, createMinimalParamLabelRenderer, createShortOptionArityAndNameComparator, createShortOptionNameComparator, createTextTable, customSynopsis, defaultColorScheme, description, descriptionHeading, detailedSynopsis, detailedSynopsis, endOfOptionsList, exitCodeList, exitCodeListHeading, footer, footerHeading, fullSynopsis, hasAtFileParameter, header, headerHeading, insertSynopsisCommandName, join, join, optionList, optionList, optionListExcludingGroups, optionListExcludingGroups, optionListGroupSections, optionListHeading, optionSectionGroups, parameterLabelRenderer, parameterList, parameterList, parameterList, parameterList, parameterListHeading, shortestFirst, subcommands, synopsis, synopsisHeading, synopsisHeadingLength
-
-
-
-
Method Detail
-
synopsis
public String synopsis(int synopsisHeadingLength)
Override this to set custom options compatarator and clusterBooleanOptions parameter to false.- Overrides:
synopsisin classpicocli.CommandLine.Help
-
makeSynopsisFromParts
protected String makeSynopsisFromParts(int synopsisHeadingLength, picocli.CommandLine.Help.Ansi.Text optionText, picocli.CommandLine.Help.Ansi.Text groupsText, picocli.CommandLine.Help.Ansi.Text endOfOptionsText, picocli.CommandLine.Help.Ansi.Text positionalParamText, picocli.CommandLine.Help.Ansi.Text commandText)
Override this to switch positions of groupsText and optionText.- Overrides:
makeSynopsisFromPartsin classpicocli.CommandLine.Help
-
-