
OSGI-OPT.src.org.kohsuke.args4j.ExampleMode Maven / Gradle / Ivy
The newest version!
package org.kohsuke.args4j;
import org.kohsuke.args4j.spi.OptionHandler;
/**
* Used with {@link CmdLineParser#printExample(ExampleMode)}.
*
* @author Kohsuke Kawaguchi
*
* @deprecated use {@link OptionHandlerFilter}
*/
public enum ExampleMode implements OptionHandlerFilter {
/**
* Print all defined options in the example.
*
*
* This would only be useful with small numbers of options.
*/
ALL() {
public boolean select(OptionHandler o) {
return true;
}
},
/**
* Print all {@linkplain Option#required() required} option.
*/
REQUIRED() {
public boolean select(OptionHandler o) {
return o.option.required();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy