|
|
@@ -1,5 +1,5 @@ |
|
|
/* |
|
|
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved. |
|
|
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved. |
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
|
* |
|
|
* This code is free software; you can redistribute it and/or modify it |
|
@@ -326,6 +326,20 @@ void process(JavapTask task, String opt, String arg) throws BadArgs { |
|
|
void process(JavapTask task, String opt, String arg) throws BadArgs { |
|
|
task.options.moduleName = arg; |
|
|
} |
|
|
}, |
|
|
|
|
|
// this option is processed by the launcher, and cannot be used when invoked via |
|
|
// an API like ToolProvider. It exists here to be documented in the command-line help. |
|
|
new Option(false, "-J") { |
|
|
@Override |
|
|
boolean matches(String opt) { |
|
|
return opt.startsWith("-J"); |
|
|
} |
|
|
|
|
|
@Override |
|
|
void process(JavapTask task, String opt, String arg) throws BadArgs { |
|
|
throw task.new BadArgs("err.only.for.launcher"); |
|
|
} |
|
|
} |
|
|
|
|
|
}; |
|
@@ -936,7 +950,7 @@ private void showHelp() { |
|
|
printLines(getMessage("main.usage", progname)); |
|
|
for (Option o: recognizedOptions) { |
|
|
String name = o.aliases[0].replaceAll("^-+", "").replaceAll("-+", "_"); // there must always be at least one name |
|
|
if (name.startsWith("X") || name.equals("fullversion") || name.equals("h") || name.equals("verify")) |
|
|
if (name.startsWith("X") || name.equals("fullversion")) |
|
|
continue; |
|
|
printLines(getMessage("main.opt." + name)); |
|
|
} |
|
|