From 2183372f655d44c77fb177e254ea0e054c729330 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 8 Sep 2011 21:06:50 -0500 Subject: [PATCH] Man page: clarify `list` command Document the '--versions' option for `brew list`. The two forms of the `list` command as previously documented clearly do different things, but after documenting '--versions', their functions do overlap a bit, so we combine them and clarify the different invocations. Signed-off-by: Jack Nagel --- Library/Contributions/manpages/brew.1.md | 10 ++++++---- share/man/man1/brew.1 | 12 +++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index ab3cb9a270..ef991dffac 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -164,11 +164,13 @@ For the full command list, see the COMMANDS section. is done automatically when you install formula, but can be useful for DIY installations. - * `list`: - List all installed formulae. + * `list [--versions]` []: + Without any arguments, list all installed formulae. - * `list` : - List the installed files for . + If are given, list the installed files for . + + If `--versions` is passed, show the version number for installed formulae, + or only the specified formulae if are given. * `log [git-log-options]` ...: Show the git log for the given formulae. Options that `git-log`(1) diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index 2f37e68ccb..d2a72844ac 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -181,12 +181,14 @@ If \fB\-\-git\fR is passed, Homebrew will create a Git repository, useful for cr Symlink all of \fIformula\fR\'s installed files into the Homebrew prefix\. This is done automatically when you install formula, but can be useful for DIY installations\. . .TP -\fBlist\fR -List all installed formulae\. +\fBlist [\-\-versions]\fR [\fIformulae\fR] +Without any arguments, list all installed formulae\. . -.TP -\fBlist\fR \fIformula\fR -List the installed files for \fIformula\fR\. +.IP +If \fIformulae\fR are given, list the installed files for \fIformulae\fR\. +. +.IP +If \fB\-\-versions\fR is passed, show the version number for installed formulae, or only the specified formulae if \fIformulae\fR are given\. . .TP \fBlog [git\-log\-options]\fR \fIformula\fR \.\.\.