summaryrefslogtreecommitdiffstats
path: root/doc/package.n
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)
commit948fa4804d3150012673e669b6b022a3a83af808 (patch)
tree20f01b1aad643273580c80eed11f8059182dd4e0 /doc/package.n
parent86de0f0b95070e47d21d5ae69bc959898e0a86ac (diff)
downloadtcl-948fa4804d3150012673e669b6b022a3a83af808.zip
tcl-948fa4804d3150012673e669b6b022a3a83af808.tar.gz
tcl-948fa4804d3150012673e669b6b022a3a83af808.tar.bz2
* doc/package.n: [Bug 2980210]: Document the arguments taken by
the [package present] command correctly.
Diffstat (limited to 'doc/package.n')
-rw-r--r--doc/package.n7
1 files changed, 4 insertions, 3 deletions
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