Package picocli

Class CommandLine.Help.DefaultOptionRenderer

java.lang.Object
picocli.CommandLine.Help.DefaultOptionRenderer
All Implemented Interfaces:
CommandLine.Help.IOptionRenderer
Enclosing class:
CommandLine.Help

static class CommandLine.Help.DefaultOptionRenderer extends Object implements CommandLine.Help.IOptionRenderer
The DefaultOptionRenderer converts Options to five columns of text to match the default TextTable column layout. The first row of values looks like this:
  1. the required option marker (if the option is required)
  2. 2-character short option name (or empty string if no short option exists)
  3. comma separator (only if both short option and long option exist, empty string otherwise)
  4. comma-separated string with long option name(s)
  5. first element of the CommandLine.Model.ArgSpec.description() array

Following this, there will be one row for each of the remaining elements of the CommandLine.Model.ArgSpec.description() array, and these rows look like {"", "", "", option.description()[i]}.