equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
1142 private void showHelp() { |
1142 private void showHelp() { |
1143 log.println(getMessage("main.usage", PROGNAME)); |
1143 log.println(getMessage("main.usage", PROGNAME)); |
1144 for (Option o : recognizedOptions) { |
1144 for (Option o : recognizedOptions) { |
1145 String name = o.aliases[0].substring(1); // there must always be at least one name |
1145 String name = o.aliases[0].substring(1); // there must always be at least one name |
1146 name = name.charAt(0) == '-' ? name.substring(1) : name; |
1146 name = name.charAt(0) == '-' ? name.substring(1) : name; |
1147 if (o.isHidden() || name.equals("h") || name.startsWith("filter:")) { |
1147 if (o.isHidden() || name.startsWith("filter:")) { |
1148 continue; |
1148 continue; |
1149 } |
1149 } |
1150 log.println(getMessage("main.opt." + name)); |
1150 log.println(getMessage("main.opt." + name)); |
1151 } |
1151 } |
1152 } |
1152 } |