Command.addVersionOption

custom the version option

  1. Self addVersionOption(string flags, string desc)
  2. Self addVersionOption(Option opt, void delegate() action)
    class Command
    addVersionOption
    (,
    void delegate
    ()
    action = null
    )

Parameters

opt Option

the version option

action void delegate
()

the action callback when parsing the flag of version option, if null, then do nothing and exit mutely

Return Value

Type: Self

Self for chain call

Meta