diff --git a/Library/Homebrew/dev-cmd/prof.rb b/Library/Homebrew/dev-cmd/prof.rb index 2f4edb2442..0d49f551a5 100644 --- a/Library/Homebrew/dev-cmd/prof.rb +++ b/Library/Homebrew/dev-cmd/prof.rb @@ -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 diff --git a/docs/Manpage.md b/docs/Manpage.md index e977015f9d..28fe70f689 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -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`. diff --git a/manpages/brew.1 b/manpages/brew.1 index e85c4a9c6c..9c290e7d91 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -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