class

Cli::Supercommand

Inherits Cli::CommandBase < Reference < Object

The base of supercommand classes.

Macros

command(name, default = false, aliased = nil)

Sets subcommand attributes.

Parameters

  • name (String) : a target subcommand name
  • default (Bool) : if true, it makes the target subcommand a default subcommand.
  • aliased (String) : makes the target subcommand an alias of the other subcommand that has the aliased name.
Source