Examples of helpLines()


Examples of org.apache.commons.cli2.Option.helpLines()

        } else {
            option = getGroup();
        }

        // grab the HelpLines to display
        final List helpLines = option.helpLines(
                skipToplevel ? -1 : 0, getDisplaySettings(), getComparator());
        if (skipToplevel) {
            helpLines.remove(0);
        }
       
View Full Code Here

Examples of org.apache.commons.cli2.Option.helpLines()

            }

            // for each option
            for (final Iterator i = list.iterator(); i.hasNext();) {
                final Option option = (Option) i.next();
                helpLines.addAll(option.helpLines(depth + 1, helpSettings, comp));
            }
        }

        if (helpSettings.contains(DisplaySetting.DISPLAY_GROUP_ARGUMENT)) {
            for (final Iterator i = anonymous.iterator(); i.hasNext();) {
View Full Code Here

Examples of org.apache.commons.cli2.Option.helpLines()

        }

        if (helpSettings.contains(DisplaySetting.DISPLAY_GROUP_ARGUMENT)) {
            for (final Iterator i = anonymous.iterator(); i.hasNext();) {
                final Option option = (Option) i.next();
                helpLines.addAll(option.helpLines(depth + 1, helpSettings, comp));
            }
        }

        return helpLines;
    }
View Full Code Here

Examples of org.apache.commons.cli2.Option.helpLines()

        } else {
            option = group;
        }

        // grab the HelpLines to display
        final List helpLines = option.helpLines(0, displaySettings, comparator);

        // calculate the maximum width of the usage strings
        int usageWidth = 0;

        for (final Iterator i = helpLines.iterator(); i.hasNext();) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.