Method Arg.OptLibrary()->Opt()->get_value()
- Method
get_value
mixedget_value(array(string)argv,mapping(string:string)env,mixedprevious)- Description
The overloading method should calculate the value of the option and return it. Methods processing
argvshould only look at argv[0] and if it matches, set it to 0. ReturningUNDEFINEDmeans the option was not set (or matched). To properly chain arguments parsers, return::get_value(argv, env, previous)instead ofUNDEFINED, unless you want to explicitly stop the chain and not set this option.