File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ using namespace std;
24
24
const char *ArgParser::HELP_MSG =
25
25
" JRuby Launcher usage: jruby" EXEEXT " {options} arguments\n\n \
26
26
Options:\n \
27
- -Xhelp show this help\n \
28
27
-Xversion print launcher's version\n \
29
28
\n Jvm Management:\n \
30
29
-Xjdkhome <path> set path to JDK\n \
@@ -37,7 +36,7 @@ Options:\n\
37
36
-Xnobootclasspath don't put jruby jars on the bootclasspath\n \
38
37
\n Misc:\n \
39
38
-Xtrace <path> path for launcher log (for troubleshooting)\n \
40
- -Xcommand just print the equivalent java command and exit\n \
39
+ -Xcommand just print the equivalent java command and exit\n\n \
41
40
-Xprop.erty[=value] equivalent to -J-Djruby.<prop.erty>[=value]\n \
42
41
-Xproperties list supported properties (omit \" jruby.\" with -X)\n "
43
42
#ifdef WIN32
@@ -309,7 +308,7 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
309
308
noBootClassPath = true ;
310
309
}
311
310
javaOptions.push_back (javaOpt);
312
- } else if (strcmp (it->c_str (), " -Xhelp" ) == 0 ) {
311
+ } else if (strcmp (it->c_str (), " -Xhelp" ) == 0 || strcmp (it-> c_str (), " -X " ) == 0 ) {
313
312
printToConsole (HELP_MSG);
314
313
if (!appendHelp.empty ()) {
315
314
printToConsole (appendHelp.c_str ());
You can’t perform that action at this time.
0 commit comments