Example usage for org.apache.commons.cli HelpFormatter setDescPadding

List of usage examples for org.apache.commons.cli HelpFormatter setDescPadding

Introduction

In this page you can find the example usage for org.apache.commons.cli HelpFormatter setDescPadding.

Prototype

public void setDescPadding(int padding) 

Source Link

Document

Sets the 'descPadding'.

Usage

From source file:org.apache.nifi.toolkit.zkmigrator.ZooKeeperMigratorMain.java

private static void printUsage(String errorMessage, Options options) {
    Preconditions.checkNotNull(options, "command line options were not specified");
    if (errorMessage != null) {
        System.out.println(errorMessage + System.lineSeparator());
    }/*  www  . j ava2  s . c  o m*/
    HelpFormatter helpFormatter = new HelpFormatter();
    helpFormatter.setWidth(160);
    helpFormatter.setDescPadding(0);
    helpFormatter.printHelp(ZooKeeperMigratorMain.class.getCanonicalName(), HEADER, options, FOOTER, true);
}