nstcl  >  Documentation  >  nstcl-core  >  ad_arg_parser

Tcl Powered!

ad_arg_parser

NAME

ad_arg_parser — Parses a list of trailing argument switches

SYNOPSIS

package require nstcl-core ?1.0?
package require nstcl ?1.0?

::nstcl::ad_arg_parser allowed_args argv

DESCRIPTION

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.

KEYWORDS

nstcl