Skip to content

Commit 3262329

Browse files
committed
Added -Xversion to help, and cleaned/reorganized the help a bit.
1 parent ccf0d99 commit 3262329

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

argparser.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,26 @@
2222
using namespace std;
2323

2424
const char *ArgParser::HELP_MSG =
25-
"\nJRuby Launcher usage: jruby" EXEEXT " {options} arguments\n\
25+
"JRuby Launcher usage: jruby" EXEEXT " {options} arguments\n\n\
2626
Options:\n\
2727
-Xhelp show this help\n\
28-
-Xjdkhome <path> path to JDK\n\
28+
-Xversion print launcher's version\n\
29+
\nJvm Management:\n\
30+
-Xjdkhome <path> set path to JDK\n\
31+
-Xfork-java run java in separate process\n\
2932
-J<jvm_option> pass <jvm_option> to JVM\n\
30-
\n\
33+
\nClasspath Management:\n\
3134
-Xcp <classpath> set the classpath\n\
3235
-Xcp:p <classpath> prepend <classpath> to classpath\n\
3336
-Xcp:a <classpath> append <classpath> to classpath\n\
34-
\n\
35-
-Xfork-java run java in separate process\n\
37+
-Xnobootclasspath don't put jruby jars on the bootclasspath\n\
38+
\nMisc:\n\
3639
-Xtrace <path> path for launcher log (for troubleshooting)\n\
37-
-Xcommand just print the equivalent java command and exit\n\
38-
-Xnobootclasspath don't put jruby jars on the bootclasspath\n"
40+
-Xcommand just print the equivalent java command and exit\n"
3941
#ifdef WIN32
4042
" -Xconsole <mode> jrubyw console attach mode (new|attach|suppress)\n\n"
4143
#endif
42-
"To see general JRuby options, type 'jruby -h' or 'jruby --help'.\n\
43-
--------------------------------------------------------------------\n\n";
44+
"To see general JRuby options, type 'jruby -h' or 'jruby --help'.\n";
4445

4546
const char *ArgParser::REQ_JAVA_VERSION = "1.5";
4647

0 commit comments

Comments
 (0)