List of usage examples for org.apache.commons.cli2 DisplaySetting DISPLAY_GROUP_NAME
DisplaySetting DISPLAY_GROUP_NAME
To view the source code for org.apache.commons.cli2 DisplaySetting DISPLAY_GROUP_NAME.
Click Source Link
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 w w . j a va2 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();/* ww w . j a v a 2 s . co m*/ }