Command.command

define a sub command, which represents the external command line program

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

Parameters

name string

only the name of this sub command

desc string

the description of this sub command

execOpts string[string]

controll the behavior, file the file name of external command line program, dir the directory that external command line program situates on help the help option of this external command line program, which is useful when invoke the help of this sub command

Return Value

Type: Self

Self for chain call

Meta