Skip to content

Commit

Permalink
Document all ways of passing -X options in -Xhelp,
Browse files Browse the repository at this point in the history
using the same description found in vm/environment.cpp
  • Loading branch information
jemc committed Jan 20, 2015
1 parent bf7db36 commit e0f904a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions kernel/loader.rb
Expand Up @@ -426,9 +426,15 @@ def options(argv=ARGV)
All variables, even ones that the VM doesn't understand, are available
in Rubinius::Config.
These options can also be passed via the RBXOPT environment variable:
Options are parsed from these sources, in this order:
RBXOPT=-Xint rbx
1. The file .rbxrc in the current working directory.
2. The RBXOPT environment variable.
3. The command line options.
This order permits environment and command line options to override
"application" configuration. Likewise, command line options can override
environment configuration.
A number of Rubinius features are driven by setting these variables.
DOC
Expand Down
4 changes: 2 additions & 2 deletions vm/environment.cpp
Expand Up @@ -247,8 +247,8 @@ namespace rubinius {
* 2. The RBXOPT environment variable.
* 3. The command line options.
*
* This order permits environment and command line ot override
* "application" configuration. Likewise, command line can override
* This order permits environment and command line options to override
* "application" configuration. Likewise, command line options can override
* environment configuration.
*/

Expand Down

0 comments on commit e0f904a

Please sign in to comment.