summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-03-31 20:53:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-03-31 20:53:03 (GMT)
commit9e7bcd6487b88a6bf2db266bc180b5eb93c61298 (patch)
tree20f01b1aad643273580c80eed11f8059182dd4e0
parenta715f307a38d6b3c3a7bb1df77fbec824879937a (diff)
downloadtcl-9e7bcd6487b88a6bf2db266bc180b5eb93c61298.zip
tcl-9e7bcd6487b88a6bf2db266bc180b5eb93c61298.tar.gz
tcl-9e7bcd6487b88a6bf2db266bc180b5eb93c61298.tar.bz2
* doc/package.n: [Bug 2980210]: Document the arguments taken by
the [package present] command correctly.
-rw-r--r--ChangeLog5
-rw-r--r--doc/package.n7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b505616..54354dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-31 Donal K. Fellows <dkf@users.sf.net>
+
+ * doc/package.n: [Bug 2980210]: Document the arguments taken by
+ the [package present] command correctly.
+
2010-03-30 Andreas Kupries <andreask@activestate.com>
* generic/tclIORChan.c (ReflectClose, ReflectInput, ReflectOutput,
diff --git a/doc/package.n b/doc/package.n
index aafce5e..1ded115 100644
--- a/doc/package.n
+++ b/doc/package.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: package.n,v 1.22 2007/12/13 15:22:33 dgp Exp $
+'\" RCS: @(#) $Id: package.n,v 1.22.2.1 2010/03/31 20:53:04 dkf Exp $
'\"
.so man.macros
.TH package n 7.5 Tcl "Tcl Built-In Commands"
@@ -79,7 +79,8 @@ interpreter for which a version has been provided (via
script is available.
The order of elements in the list is arbitrary.
.TP
-\fBpackage present\fR
+\fBpackage present\fR ?\fB\-exact\fR? \fIpackage\fR ?\fIrequirement...\fR?
+.
This command is equivalent to \fBpackage require\fR except that it
does not try and load the package if it is not already loaded.
.TP
@@ -95,7 +96,7 @@ returns the version number that is currently provided, or an
empty string if no \fBpackage provide\fR command has been
invoked for \fIpackage\fR in this interpreter.
.TP
-\fBpackage require \fR\fIpackage \fR?\fIrequirement...\fR?
+\fBpackage require\fR \fIpackage \fR?\fIrequirement...\fR?
This command is typically invoked by Tcl code that wishes to use
a particular version of a particular package. The arguments
indicate which package is wanted, and the command ensures that