Command.command

define a sub command and sub command's arguments, this sub command inherit the basic configuration of parent command

  1. Command command(string nameAndArgs, bool[string] cmdOpts)
    class Command
    command
    (
    Args...
    )
    (,
    bool[string] cmdOpts = null
    )
  2. Self command(string name, string desc, string[string] execOpts)

Parameters

nameAndArgs string

like sub <arg1> [arg2] [arg3...]

cmdOpts bool[string]

controll the behavior, isDefault determine whether this sub command is default sub command, hidden determine whether this sub command is hidden out of help Args: that is type sequence of the arguments' type sequence

Return Value

Type: Command

the sub command that you define

Meta