tcl::OptProc OptKeyDelete
Removes a kept description.
tcl::OptKeyDelete KEY
Description
Removes the description of KEY. A later parse with KEY is an error.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| KEY | string | required | A key of tcl::OptKeyRegister. |
Returns
An empty string.
Examples
Each example of this page runs after package require opt.
% tcl::OptKeyRegister {{-z}} k2
> tcl::OptKeyDelete k2
Errors
% tcl::OptKeyDelete nokey
can't unset "OptDesc(nokey)": no such variable
-errorcode NONE
% tcl::OptKeyDelete
wrong # args: should be "tcl::OptKeyDelete key"
-errorcode TCL WRONGARGS
Facts
- Capability
package. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1