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

Adding RBXOPT information to help on -X options #3289

Merged
merged 1 commit into from Jan 19, 2015

Conversation

jasonrclark
Copy link
Contributor

Would this work for surfacing a bit more info on RBXOPT? I had looked at the
--help output and found -Xhelp, but I didn't know clearly how I could pass
those options in.

jc00ke added a commit that referenced this pull request Jan 19, 2015
Adding RBXOPT information to help on -X options
@jc00ke jc00ke merged commit bf7db36 into rubinius:master Jan 19, 2015
@jemc
Copy link
Member

jemc commented Jan 19, 2015

Note that there are actually three ways to pass in -X options - it would be nice to list them all here. They are documented in the source here:

https://github.com/rubinius/rubinius/blob/master/vm/environment.cpp#L244-L253

    /* We parse -X options from three sources in the following order:
     *
     *  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 ot override
     * "application" configuration. Likewise, command line can override
     * environment configuration.
     */

@jemc
Copy link
Member

jemc commented Jan 19, 2015

Heh, also just noticed a typo in the source code I referenced above.
ot override => to override

@jasonrclark jasonrclark deleted the rbxopt-help branch January 20, 2015 00:04
@jemc
Copy link
Member

jemc commented Jan 20, 2015

I addressed my concerns in e0f904a

@jasonrclark
Copy link
Contributor Author

Thanks for tightening that up @jemc! This will be a great help to anyone like me looking to set those options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants