|
ad_arg_parser Parses a list of trailing argument switches
package require nstcl-core ?1.0?
package require nstcl ?1.0?::nstcl::ad_arg_parser allowed_args argv
Given a list of allowed_args and a list of command-line options in argv, set switch values in the corresponding variable names in the calling enviroment.If the last switch name listed in allowed_args is args then extra values will be tolerated after any switches (in argv) and these remaining values will be placed in the args list.
nstcl