langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, 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 |
336 public void process(Helper helper) throws OptionException { |
336 public void process(Helper helper) throws OptionException { |
337 throw new OptionException(OK, helper::usage); |
337 throw new OptionException(OK, helper::usage); |
338 } |
338 } |
339 }, |
339 }, |
340 |
340 |
341 X("-X", STANDARD) { |
341 HELP_EXTRA("--help-extra -X", STANDARD) { |
342 @Override |
342 @Override |
343 public void process(Helper helper) throws OptionException { |
343 public void process(Helper helper) throws OptionException { |
344 throw new OptionException(OK, helper::Xusage); |
344 throw new OptionException(OK, helper::Xusage); |
345 } |
345 } |
346 }, |
346 }, |