/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addAll(Collections.list(super.listOptions())); result.addElement(new Option( "\tSuppresses the 'Valid options are...' prolog in the Javadoc.", "noprolog", 0, "-noprolog")); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addAll(Collections.list(super.listOptions())); result.addElement(new Option( "\tSuppresses the 'BibTex:' prolog in the Javadoc.", "noprolog", 0, "-noprolog")); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addAll(Collections.list(super.listOptions())); result.addElement(new Option( "\tSuppresses the 'Valid options are...' prolog in the Javadoc.", "noprolog", 0, "-noprolog")); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addAll(Collections.list(super.listOptions())); result.addElement(new Option( "\tSuppresses the 'BibTex:' prolog in the Javadoc.", "noprolog", 0, "-noprolog")); return result.elements(); }
/** * generates a string to print as help on the console * * @return the generated help */ public String generateHelp() { String result; Enumeration<Option> enm; Option option; result = getClass().getName().replaceAll(".*\\.", "") + " Options:\n\n"; enm = listOptions(); while (enm.hasMoreElements()) { option = enm.nextElement(); result += option.synopsis() + "\n" + option.description() + "\n"; } return result; }
/** * generates a string to print as help on the console * * @return the generated help */ public String generateHelp() { String result; Enumeration<Option> enm; Option option; result = getClass().getName().replaceAll(".*\\.", "") + " Options:\n\n"; enm = listOptions(); while (enm.hasMoreElements()) { option = enm.nextElement(); result += option.synopsis() + "\n" + option.description() + "\n"; } return result; }