Skip to content

Command

[Source]

Command contains all of the information describing a command with its spec and effective options and arguments, ready to use.

class box Command

Public Functions

string

[Source]

Returns a representational string for this command.

fun box string()
: String iso^

Returns


spec

[Source]

Returns the spec for this command.

fun box spec()
: CommandSpec box

Returns


fullname

[Source]

Returns the full name of this command, with its parents prefixed.

fun box fullname()
: String val

Returns


option

[Source]

Returns the Option by name, defaulting to a fake Option if unknown.

fun box option(
  name: String val)
: Option val

Parameters

Returns


arg

[Source]

Returns the Arg by name, defaulting to a fake Arg if unknown.

fun box arg(
  name: String val)
: Arg val

Parameters

Returns