CommandHelp

CommandHelp encapsulates the information needed to generate a user help message for a given CommandSpec, optionally with a specific command identified to print help about. Use Help.general() or Help.for_command() to create a CommandHelp instance.

class box CommandHelp

Constructors

_create

new ref _create(
  parent': (CommandHelp box | None val),
  spec': CommandSpec box)
: CommandHelp ref^

Parameters

Returns


Public Functions

fullname

fun box fullname()
: String val

Returns


string

fun box string()
: String val

Returns


help_string

Renders the help message as a String.

fun box help_string()
: String val

Returns


Prints the help message to an OutStream.

fun box print_help(
  os: OutStream tag)
: None val

Parameters

Returns


Private Functions

_write_help

fun box _write_help(
  w: Writer ref)
: None val

Parameters

Returns


_write_usage

fun box _write_usage(
  w: Writer ref)
: None val

Parameters

Returns


_write_options

fun box _write_options(
  w: Writer ref,
  options: Array[OptionSpec box] box)
: None val

Parameters

Returns


_write_commands

fun box _write_commands(
  w: Writer ref)
: None val

Parameters

Returns


_list_commands

fun box _list_commands(
  cs: CommandSpec box,
  cols: Array[(USize val , String val , String val)] ref,
  level: USize val)
: None val

Parameters

Returns


_write_args

fun box _write_args(
  w: Writer ref,
  args: Array[ArgSpec val] box)
: None val

Parameters

Returns


_any_options

fun box _any_options()
: Bool val

Returns


_all_options

fun box _all_options()
: Array[OptionSpec box] ref

Returns


_all_options_fill

fun box _all_options_fill(
  options: Array[OptionSpec box] ref)
: None val

Parameters

Returns