Merge pull request #10614 from jonchang/brew-prof-min

prof: needs at least 1 argument
This commit is contained in:
Jonathan Chang 2021-02-15 23:53:59 +11:00 committed by GitHub
commit 4c26b9b17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ module Homebrew
switch "--stackprof",
description: "Use `stackprof` instead of `ruby-prof` (the default)."
named_args :command
named_args :command, min: 1
end
end

View File

@ -1207,7 +1207,7 @@ Apply the bottle commit and publish bottles to Bintray or GitHub Releases.
* `--root-url`:
Use the specified *`URL`* as the root of the bottle's URL instead of Homebrew's default.
### `prof` [*`--stackprof`*] [*`command`* ...]
### `prof` [*`--stackprof`*] *`command`* [...]
Run Homebrew with a Ruby profiler. For example, `brew prof readall`.

View File

@ -1687,7 +1687,7 @@ Upload to the specified Bintray organisation (default: \fBhomebrew\fR)\.
\fB\-\-root\-url\fR
Use the specified \fIURL\fR as the root of the bottle\'s URL instead of Homebrew\'s default\.
.
.SS "\fBprof\fR [\fI\-\-stackprof\fR] [\fIcommand\fR \.\.\.]"
.SS "\fBprof\fR [\fI\-\-stackprof\fR] \fIcommand\fR [\.\.\.]"
Run Homebrew with a Ruby profiler\. For example, \fBbrew prof readall\fR\.
.
.TP