langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java
changeset 43875 d0e60aa1f18b
parent 43772 4e5350b7be75
child 43878 4b0a3bda61d3
equal deleted inserted replaced
43874:d49715456f51 43875:d0e60aa1f18b
     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     },