8172422: jarsigner needs to understand -?

Reviewed-by: mullan
This commit is contained in:
Weijun Wang 2017-04-13 08:15:19 +08:00
parent a81e051d75
commit 298bfc1057
2 changed files with 4 additions and 1 deletions

View File

@ -485,7 +485,9 @@ public final class Main {
if (c != null) {
command = c;
} else if (collator.compare(flags, "-help") == 0) {
} else if (collator.compare(flags, "-help") == 0 ||
collator.compare(flags, "-h") == 0 ||
collator.compare(flags, "-?") == 0) {
help = true;
} else if (collator.compare(flags, "-conf") == 0) {
i++;

View File

@ -444,6 +444,7 @@ public class Main {
} else if (collator.compare(flags, "-strict") ==0) {
strict = true;
} else if (collator.compare(flags, "-h") == 0 ||
collator.compare(flags, "-?") == 0 ||
collator.compare(flags, "-help") == 0) {
fullusage();
} else {