doc/cmd.tcl
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 if {![llength $argv]} {
00011 format = *
00012 } else {
00013 format = [lindex $argv 0]*
00014 argv = [lrange $argv 1 end]
00015 }
00016
00017 package require sak::util
00018 if {![sak::util::checkModules argv]} return
00019
00020 matches = 0
00021 foreach f {html nroff tmml text wiki latex dvi ps pdf list validate} {
00022 if {![string match $format $f]} continue
00023 incr matches
00024 }
00025 if {!$matches} {
00026 puts " No format matching \"$format\""
00027 return
00028 }
00029
00030
00031
00032 package require sak::doc
00033
00034 foreach f {html nroff tmml text wiki latex dvi ps pdf list validate} {
00035 if {![string match $format $f]} continue
00036 sak::doc::$f $argv
00037 }
00038
00039
00040
00041