Example usage for org.apache.commons.cli2 DisplaySetting DISPLAY_GROUP_ARGUMENT

List of usage examples for org.apache.commons.cli2 DisplaySetting DISPLAY_GROUP_ARGUMENT

Introduction

In this page you can find the example usage for org.apache.commons.cli2 DisplaySetting DISPLAY_GROUP_ARGUMENT.

Prototype

DisplaySetting DISPLAY_GROUP_ARGUMENT

To view the source code for org.apache.commons.cli2 DisplaySetting DISPLAY_GROUP_ARGUMENT.

Click Source Link

Document

Indicates that group arguments should be included

Usage

From source file:egat.cli.Main.java

protected static void printHelp(Group options) {
    HelpFormatter hf = new HelpFormatter();
    hf.setShellCommand("egat");
    hf.setGroup(options);/*from   w  ww . ja  va 2 s .c  om*/

    hf.getFullUsageSettings().add(DisplaySetting.DISPLAY_GROUP_NAME);
    hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_GROUP_ARGUMENT);
    hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_GROUP_EXPANDED);
    hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_OPTIONAL_CHILD_GROUP);
    hf.setFooter("egat is developed by Patrick R. Jordan (prjordan@umich.edu).");
    hf.print();
}

From source file:egat.cli.AbstractGameCommandHandler.java

protected void printHelp() {
    HelpFormatter hf = new HelpFormatter();
    hf.setShellCommand("egat " + getCommandName());
    hf.setGroup(getCommand().getChildren());

    hf.getFullUsageSettings().add(DisplaySetting.DISPLAY_GROUP_NAME);
    hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_GROUP_ARGUMENT);
    hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_GROUP_EXPANDED);
    hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_OPTIONAL_CHILD_GROUP);
    hf.setFooter("egat is developed by Patrick R. Jordan (prjordan@umich.edu).");
    hf.print();/*from www  .  j  a  v a 2 s  .c om*/
}