/** * Load the options from the arguments string * * @param args * the arguments string * * @throws CmdLineException * if an error occurs */ public ReferencesToolOpts(String[] args) throws CmdLineException { parser = new ExtendedCmdLineParser(this); parser.parseArgument(args); }
@Override protected boolean isOption(String arg) { final boolean isKeyValuePair = arg.indexOf('=') != -1; final OptionHandler<?> handler = isKeyValuePair ? findHandler(arg) : findByName(arg); if (handler == null) { return false; } return super.isOption(arg); }
System.err.println(); System.err.println("Usage:"); options.parser.printUsage(System.err); System.err.println(); System.err.println("Examples:");