Command.getOptVal

get the inner value of a option by name wrapped by ArgWrap. remember better use it in action callabck or after parsing

  1. ArgWrap getOptVal(string key)
    class Command
    const
    getOptVal
    (
    string key
    )
  2. T getOptVal(string key)

Parameters

key string

the name of option

Return Value

Type: ArgWrap

the value wrapped by ArgWrap, which may be empty when cannot find the option

Meta