From 9e7bcd6487b88a6bf2db266bc180b5eb93c61298 Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 31 Mar 2010 20:53:03 +0000 Subject: * doc/package.n: [Bug 2980210]: Document the arguments taken by the [package present] command correctly. --- ChangeLog | 5 +++++ doc/package.n | 7 ++++--- 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 + + * doc/package.n: [Bug 2980210]: Document the arguments taken by + the [package present] command correctly. + 2010-03-30 Andreas Kupries * 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 -- cgit v0.12