cmd/search: tweak documentation text.

This commit is contained in:
Mike McQuaid 2020-03-04 13:14:39 +00:00
parent 67d012afcc
commit 6ead927500
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
3 changed files with 9 additions and 9 deletions

View File

@ -37,11 +37,11 @@ module Homebrew
No online search is performed. No online search is performed.
EOS EOS
switch "--formulae", switch "--formulae",
description: "List all locally available formulae. "\ description: "Without <text>, list all locally available formulae (no online search is performed). " \
"No online search is performed." "With <text>, search online and locally for formulae."
switch "--casks", switch "--casks",
description: "List all locally available casks (including tapped ones). "\ description: "Without <text>, list all locally available casks (including tapped ones, no online " \
"No online search is performed." "search is performed). With <text>, search online and locally for casks."
switch "--desc", switch "--desc",
description: "Search for formulae with a description matching <text> and casks with "\ description: "Search for formulae with a description matching <text> and casks with "\
"a name matching <text>." "a name matching <text>."
@ -68,7 +68,7 @@ module Homebrew
if args.remaining.empty? if args.remaining.empty?
if args.casks? if args.casks?
raise UsageError, "Cannot specify --formulae and --casks without an argument!" if args.formulae? raise UsageError, "specifying both --formulae and --casks requires an argument!" if args.formulae?
puts Formatter.columns(Cask::Cask.to_a.map(&:full_name).sort) puts Formatter.columns(Cask::Cask.to_a.map(&:full_name).sort)
else else

View File

@ -426,9 +426,9 @@ If no *`text`* is provided, list all locally available formulae (including tappe
ones). No online search is performed. ones). No online search is performed.
* `--formulae`: * `--formulae`:
List all locally available formulae. No online search is performed. Without *`text`*, list all locally available formulae (no online search is performed). With *`text`*, search online and locally for formulae.
* `--casks`: * `--casks`:
List all locally available casks (including tapped ones). No online search is performed. Without *`text`*, list all locally available casks (including tapped ones, no online search is performed). With *`text`*, search online and locally for casks.
* `--desc`: * `--desc`:
Search for formulae with a description matching *`text`* and casks with a name matching *`text`*. Search for formulae with a description matching *`text`* and casks with a name matching *`text`*.
* `--macports`: * `--macports`:

View File

@ -549,11 +549,11 @@ If no \fItext\fR is provided, list all locally available formulae (including tap
. .
.TP .TP
\fB\-\-formulae\fR \fB\-\-formulae\fR
List all locally available formulae\. No online search is performed\. Without \fItext\fR, list all locally available formulae (no online search is performed)\. With \fItext\fR, search online and locally for formulae\.
. .
.TP .TP
\fB\-\-casks\fR \fB\-\-casks\fR
List all locally available casks (including tapped ones)\. No online search is performed\. Without \fItext\fR, list all locally available casks (including tapped ones, no online search is performed)\. With \fItext\fR, search online and locally for casks\.
. .
.TP .TP
\fB\-\-desc\fR \fB\-\-desc\fR