aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starkit/demo.tcl18
1 files changed, 1 insertions, 17 deletions
diff --git a/starkit/demo.tcl b/starkit/demo.tcl
index 1c7f2ab..ed1c373 100644
--- a/starkit/demo.tcl
+++ b/starkit/demo.tcl
@@ -1,20 +1,4 @@
-set Demos { Tkzinc }
-
-proc usage {} {
- global Demos
- puts "please specify a package from the following list:"
- puts " [join $Demos { }]"
-}
-
-if { [llength $argv] == 0 } {
- usage
- exit
-}
-
set path [file dirname [info script]]
-switch -- [lindex $argv 0] {
- Tkzinc { source [file join [lindex [glob -directory [file join $path lib] Tkzinc*] 0] demos zinc-widget] }
- default usage
-}
+source [file join [lindex [glob -directory [file join $path lib] Tkzinc*] 0] demos zinc-widget]