Method Arg.OptLibrary()->Opt()->get_value()


Method get_value

mixed get_value(array(string) argv, mapping(string:string) env, mixed previous)

Description

The overloading method should calculate the value of the option and return it. Methods processing argv should only look at argv[0] and if it matches, set it to 0. Returning UNDEFINED means the option was not set (or matched). To properly chain arguments parsers, return ::get_value(argv, env, previous) instead of UNDEFINED, unless you want to explicitly stop the chain and not set this option.