4 # This file defines a command for retrieving Tcl procedures.
6 # Copyright (c) 1996 Christian Werner
8 # See the file "license.terms" for information on usage and redistribution
9 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 if {[llength $args] == 0} {
17 foreach k [info procs $i] {
21 foreach i [lsort -ascii [array names procs]] {
25 foreach k [info args $i] {
26 if [info default $i $k value] {
27 lappend args [list $k $value]
33 lappend proc [info body $i]
36 return [join $result "\n\n"]