The info Command

Table 13-4 summarizes the info command. The operations are described in more detail later.

Table 13-4. The info command.
info args procedureA list of procedure's arguments.
info body procedureThe commands in the body of procedure.
info cmdcountThe number of commands executed so far.
info commands ?pattern?A list of all commands, or those matching pattern. Includes built-ins and Tcl procedures.
info complete stringTrue if string contains a complete Tcl command.
info default proc arg varTrue if arg has a default parameter value in procedure proc. The default value is stored into var.
info exists variableTrue if variable is defined.
info globals ?pattern?A list of all global variables, or those matching pattern.
info hostnameThe name of ...

Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.