List of usage examples for org.apache.commons.cli2.util HelpFormatter getLineUsageSettings
public Set getLineUsageSettings()
From source file:com.ibm.jaql.util.shell.JaqlShellArguments.java
@SuppressWarnings("unchecked") private static void printHelpAndExit(Exception e, String message, Group options) { if (message != null) System.err.println(message); if (e != null) e.printStackTrace();/*from ww w .j a va2 s . c o m*/ HelpFormatter hf = new HelpFormatter(); hf.setShellCommand("jaqlshell"); hf.setGroup(options); hf.getFullUsageSettings().remove(DisplaySetting.DISPLAY_GROUP_EXPANDED); hf.getLineUsageSettings().add(DisplaySetting.DISPLAY_ARGUMENT_BRACKETED); hf.print(); hf.printHelp(); System.exit(1); }