Merge pull request #6453 from reitermarkus/brew-ruby
Fix `brew ruby -r`.
This commit is contained in:
commit
d40a4173d4
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
|
||||
@ -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\.
|
||||
.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user