appendOption(buff, it.next(), true);
appendOption(buff, option, option.isRequired());
appendOption(buff, option, option.isRequired());
/** * Appends the usage clause for an OptionGroup to a StringBuffer. * The clause is wrapped in square brackets if the group is required. * The display of the options is handled by appendOption * @param buff the StringBuffer to append to * @param group the group to append * @see #appendOption(StringBuffer,Option,boolean) */ private static void appendOptionGroup(final StringBuffer buff, final OptionGroup group) { if (!group.isRequired()) { buff.append("["); } // for each option in the OptionGroup for (Iterator i = group.getOptions().iterator(); i.hasNext();) { // whether the option is required or not is handled at group level appendOption(buff, (Option) i.next(), true); if (i.hasNext()) { buff.append(" | "); } } if (!group.isRequired()) { buff.append("]"); } }
appendOption(buff, option, option.isRequired());
/** * Appends the usage clause for an OptionGroup to a StringBuffer. * The clause is wrapped in square brackets if the group is required. * The display of the options is handled by appendOption * @param buff the StringBuffer to append to * @param group the group to append * @see #appendOption(StringBuffer,Option,boolean) */ private static void appendOptionGroup(final StringBuffer buff, final OptionGroup group) { if (!group.isRequired()) { buff.append("["); } // for each option in the OptionGroup for (Iterator i = group.getOptions().iterator(); i.hasNext();) { // whether the option is required or not is handled at group level appendOption(buff, (Option) i.next(), true); if (i.hasNext()) { buff.append(" | "); } } if (!group.isRequired()) { buff.append("]"); } }
appendOption(buff, option, option.isRequired());
appendOption(buff, (Option) i.next(), true);
appendOption(buff, option, option.isRequired());
appendOption(buff, (Option) i.next(), true);
appendOption(buff, option, option.isRequired());
appendOption(buff, it.next(), true);