CommandHelp

[Source]

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

Public Functions

fullname

[Source]

fun box fullname()
: String val

Returns

string

[Source]

fun box string()
: String val

Returns

help_string

[Source]

Renders the help message as a String.

fun box help_string()
: String val

Returns

[Source]

Prints the help message to an OutStream.

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

Parameters

Returns

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/cli-CommandHelp