RobertJoseph
RobertJoseph

Reputation: 8158

Where is the documentation for the ruby -run command-line parameter?

$ ruby -run -e httpd . -p 3000

The -run option is not listed in the help text (ruby --help). I haven't been able to find any documentation on this option.

Upvotes: 4

Views: 73

Answers (1)

matt
matt

Reputation: 79723

This is the same as

$ ruby -r un -e httpd . -p 3000

i.e. use the -r option to require the un library before executing your code.

The un library contains “Utilities to replace common UNIX commands in Makefiles etc”. It looks like the docs aren’t being picked up properly for the current version, possibly because of an incorrectly added nodoc tag. The Ruby 2.0.0 docs are available.

Upvotes: 4

Related Questions