man: be more exact about global options.

Make clear these don't necessarily apply to all subcommands
(see https://github.com/Homebrew/brew/issues/7121).
This commit is contained in:
Mike McQuaid 2020-03-11 12:16:47 +00:00
parent 60ec0881fe
commit f63d2d7887
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
3 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ module Homebrew
end end
def global_options_manpage def global_options_manpage
lines = ["These options are applicable across all sub-commands.\n"] lines = ["These options are applicable across multiple subcommands.\n"]
lines += Homebrew::CLI::Parser.global_options.values.map do |names, _, desc| lines += Homebrew::CLI::Parser.global_options.values.map do |names, _, desc|
short, long = names short, long = names
generate_option_doc(short, long, desc) generate_option_doc(short, long, desc)

View File

@ -991,7 +991,7 @@ Install and commit Homebrew's vendored gems.
## GLOBAL OPTIONS ## GLOBAL OPTIONS
These options are applicable across all sub-commands. These options are applicable across multiple subcommands.
* `-q`, `--quiet`: * `-q`, `--quiet`:
Suppress any warnings. Suppress any warnings.

View File

@ -1262,7 +1262,7 @@ Use the commit at the specified \fIdate\fR as the start commit\.
Install and commit Homebrew\'s vendored gems\. Install and commit Homebrew\'s vendored gems\.
. .
.SH "GLOBAL OPTIONS" .SH "GLOBAL OPTIONS"
These options are applicable across all sub\-commands\. These options are applicable across multiple subcommands\.
. .
.TP .TP
\fB\-q\fR, \fB\-\-quiet\fR \fB\-q\fR, \fB\-\-quiet\fR