File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ using namespace std;
23
23
24
24
const char *ArgParser::HELP_MSG =
25
25
" JRuby Launcher usage: jruby" EXEEXT " {options} arguments\n\n \
26
+ To see general JRuby options, type 'jruby -h' or 'jruby --help'.\n\n \
26
27
Options:\n \
27
28
-Xversion print launcher's version\n \
28
29
\n Jvm Management:\n \
@@ -42,7 +43,7 @@ Options:\n\
42
43
#ifdef WIN32
43
44
" -Xconsole <mode> jrubyw console attach mode (new|attach|suppress)\n\n "
44
45
#endif
45
- " To see general JRuby options, type 'jruby -h' or 'jruby --help'. \n " ;
46
+ ;
46
47
47
48
const char *ArgParser::REQ_JAVA_VERSION = " 1.5" ;
48
49
@@ -313,6 +314,10 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
313
314
if (!appendHelp.empty ()) {
314
315
printToConsole (appendHelp.c_str ());
315
316
}
317
+ progArgs.push_back (" -Xnopreamble" );
318
+ return false ;
319
+ } else if (strcmp (it->c_str (), " -Xversion" ) == 0 ) {
320
+ printToConsole (" JRuby Launcher Version " JRUBY_LAUNCHER_VERSION " \n " );
316
321
return false ;
317
322
} else if (strcmp (it->c_str (), " -Xversion" ) == 0 ) {
318
323
printToConsole (" JRuby Launcher Version " JRUBY_LAUNCHER_VERSION " \n " );
You can’t perform that action at this time.
0 commit comments