File 'base/getopt.tcl' (part of 'Pool_Base')
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
::pool::getopt::boolean (o v)
|
|
Argument: o
|
The option whose value is checked.
|
Argument: v
|
The value to check.
|
Returns: A boolean value. True if v contained a boolean value.
|
::pool::getopt::changeDefault (optDef option newDefault)
|
|
Argument: optDef
|
The name of the array holding the option definition.
|
Argument: option
|
The name of the change to change.
|
Argument: newDefault
|
The new value to use as default.
|
::pool::getopt::checkValues (optDef optVal)
|
|
Argument: optDef
|
The name of the array containing the option and alias definitions and their type checkers.
|
Argument: optVal
|
The name of the array containing the values to check
|
::pool::getopt::defAlias (optDef alias option)
|
|
Argument: optDef
|
The name of the array to place the new definition into.
|
Argument: alias
|
The name of the new alias, without a preceding '-'.
|
Argument: option
|
The name of the option the alias refers to, without a preceding '-'.
|
::pool::getopt::defOption (optDef option args)
|
|
Argument: optDef
|
The name of the array to place the new definition into.
|
Argument: option
|
The name of the specified option, without a preceding '-'.
|
Argument: args
|
The specification, given as <option,value>-pairs. Processed options are -type and -default.
'-type' will accept every non-empty string and defaults to ::pool::getopt::notype. The value will be interpreted later as the name of a procedure having 2 arguments and returning a boolean value. The arguments will be the name of an option and the value given to it, in this order. A result of 'false' will be interpreted as 'The value given to the option is illegal'.
'-default' will accept everything and defaults to the empty string.
|
::pool::getopt::defShortcuts (optDef)
|
|
Argument: optDef
|
The name of the array to place the shortcuts into.
|
::pool::getopt::initValues (optDef optVal)
|
|
Argument: optDef
|
The name of the array containing the option and alias definitions and their default values
|
Argument: optVal
|
The name of the array to initalize.
|
::pool::getopt::integer (o v)
|
|
Argument: o
|
The option whose value is checked.
|
Argument: v
|
The value to check.
|
Returns: A boolean value. True if v contained an integer.
|
::pool::getopt::nonempty (o v)
|
|
Argument: o
|
The option whose value is checked.
|
Argument: v
|
The value to check.
|
Returns: A boolean value. True if v was not the empty string/list.
|
::pool::getopt::notype (o v)
|
|
Argument: o
|
The option whose value is checked.
|
Argument: v
|
The value to check.
|
Returns: Always true, signaling acceptance of the value in v.
|
::pool::getopt::number (o v)
|
|
Argument: o
|
The option whose value is checked.
|
Argument: v
|
The value to check.
|
Returns: A boolean value. True if v contained a number.
|
::pool::getopt::parseArguments (optDef optList optVal)
|
|
Argument: optDef
|
The name of the array containing the option and alias definitions to recognize here.
|
Argument: optList
|
The name of the variable containing the list of arguments to parse.
|
Argument: optVal
|
The name of the array to hold the found values.
|
::pool::getopt::process (optDef optlist optval)
|
|
Argument: optDef
|
The name of the array containing the option and alias definitions to recognize.
|
Argument: optlist
|
The list of arguments to parse.
|
Argument: optval
|
The name of the array to hold the found values.
|
Returns: A list containing the arguments not processed here.
|
::pool::getopt::processOpt (optDef optlist optval)
|
|
Argument: optDef
|
The name of the array containing the option and alias definitions to recognize here.
|
Argument: optlist
|
The list of arguments to parse.
|
Argument: optval
|
The name of the array to hold the found values.
|
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries