Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix brew ruby -r. #6453

Merged
merged 1 commit into from Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions Library/Homebrew/dev-cmd/ruby.rb
Expand Up @@ -13,6 +13,8 @@ def ruby_args
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
Expand Down
2 changes: 2 additions & 0 deletions docs/Manpage.md
Expand Up @@ -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.

Expand Down
4 changes: 4 additions & 0 deletions manpages/brew.1
Expand Up @@ -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\.
.
Expand Down