File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/launcher/java/org/truffleruby/launcher Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -432,8 +432,10 @@ private void processArgument() throws CommandLineException {
432
432
disallowedInRubyOpts (argument );
433
433
warnInternalDebugTool (argument );
434
434
break FOR ;
435
- } else if (rubyOpts && argument .equals ("--help" )) {
435
+ } else if (argument .equals ("--help" )) {
436
436
disallowedInRubyOpts (argument );
437
+ // --help is handled by org.graalvm.launcher.Launcher#printDefaultHelp
438
+ config .getUnknownArguments ().add (argument );
437
439
break FOR ;
438
440
} else if (argument .equals ("--version" )) {
439
441
disallowedInRubyOpts (argument );
Original file line number Diff line number Diff line change @@ -372,9 +372,7 @@ private void printPreRunInformation(CommandLineOptions config) {
372
372
case SHORT :
373
373
printShortHelp (getOutput ());
374
374
break ;
375
- case LONG :
376
- printHelp (getOutput ());
377
- break ;
375
+ // --help is handled by org.graalvm.launcher.Launcher#printDefaultHelp
378
376
}
379
377
}
380
378
Original file line number Diff line number Diff line change 11
11
12
12
public enum ShowHelp {
13
13
NONE ,
14
- SHORT ,
15
- LONG
14
+ SHORT // -h
15
+ // LONG // --help is handled by org.graalvm.launcher.Launcher#printDefaultHelp
16
16
}
You can’t perform that action at this time.
0 commit comments