Skip to content

Commit a1d8e42

Browse files
committed
Add comment about collectArguments() on when it's used
1 parent 223f7be commit a1d8e42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/launcher/java/org/truffleruby/launcher/RubyLauncher.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ protected void launch(Context.Builder contextBuilder) {
132132
System.exit(exitValue);
133133
}
134134

135+
/**
136+
* This is only used to provide suggestions when an option is misspelled.
137+
* It should only list options which are parsed directly by the CommandLineParser.
138+
* Normal SDK options are already handled by the common Launcher code.
139+
*/
135140
@Override
136141
protected void collectArguments(Set<String> options) {
137142
options.addAll(Arrays.asList(

0 commit comments

Comments
 (0)