Merge pull request #6453 from reitermarkus/brew-ruby

Fix `brew ruby -r`.
This commit is contained in:
Mike McQuaid 2019-09-16 08:32:39 +01:00 committed by GitHub
commit d40a4173d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,8 @@ module Homebrew
Run a Ruby instance with Homebrew's libraries loaded, e.g.
`brew ruby -e "puts :gcc.f.deps"` or `brew ruby script.rb`.
EOS
switch "-r",
description: "Load a library using `require`."
switch "-e",
description: "Execute the given text string as a script."
switch :verbose

View File

@ -914,6 +914,8 @@ provided it defaults to `origin/master`.
Run a Ruby instance with Homebrew's libraries loaded, e.g. `brew ruby -e "puts
:gcc.f.deps"` or `brew ruby script.rb`.
* `-r`:
Load a library using `require`.
* `-e`:
Execute the given text string as a script.

View File

@ -1157,6 +1157,10 @@ Print as a Markdown list\.
Run a Ruby instance with Homebrew\'s libraries loaded, e\.g\. \fBbrew ruby \-e "puts :gcc\.f\.deps"\fR or \fBbrew ruby script\.rb\fR\.
.
.TP
\fB\-r\fR
Load a library using \fBrequire\fR\.
.
.TP
\fB\-e\fR
Execute the given text string as a script\.
.