summaryrefslogtreecommitdiffstats
path: root/library/opt
diff options
context:
space:
mode:
Diffstat (limited to 'library/opt')
-rw-r--r--library/opt/optparse.tcl5
-rw-r--r--library/opt/pkgIndex.tcl3
2 files changed, 5 insertions, 3 deletions
diff --git a/library/opt/optparse.tcl b/library/opt/optparse.tcl
index f3c82a1..e710008 100644
--- a/library/opt/optparse.tcl
+++ b/library/opt/optparse.tcl
@@ -8,9 +8,10 @@
# on it. If your code does rely on this package you
# may directly incorporate this code into your application.
#
-# RCS: @(#) $Id: optparse.tcl,v 1.5 2000/12/11 04:17:39 dgp Exp $
+# RCS: @(#) $Id: optparse.tcl,v 1.6 2001/08/09 01:06:42 dgp Exp $
-package provide opt 0.4.2
+package require Tcl 8
+package provide opt 0.4.3
namespace eval ::tcl {
diff --git a/library/opt/pkgIndex.tcl b/library/opt/pkgIndex.tcl
index 2de9531..02c289c 100644
--- a/library/opt/pkgIndex.tcl
+++ b/library/opt/pkgIndex.tcl
@@ -8,4 +8,5 @@
# script is sourced, the variable $dir must contain the
# full path name of this file's directory.
-package ifneeded opt 0.4.2 [list source [file join $dir optparse.tcl]]
+if {![package vsatisfies [package provide Tcl] 8]} {return}
+package ifneeded opt 0.4.3 [list source [file join $dir optparse.tcl]]