Search in sources :

Example 1 with BasicParser

use of org.apache.hbase.thirdparty.org.apache.commons.cli.BasicParser in project hbase by apache.

the class AbstractHBaseTool method parseArgs.

protected CommandLine parseArgs(String[] args) throws ParseException {
    options.addOption(SHORT_HELP_OPTION, LONG_HELP_OPTION, false, "Show usage");
    addOptions();
    CommandLineParser parser = new BasicParser();
    return parser.parse(options, args);
}
Also used : BasicParser(org.apache.hbase.thirdparty.org.apache.commons.cli.BasicParser) CommandLineParser(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLineParser)

Aggregations

BasicParser (org.apache.hbase.thirdparty.org.apache.commons.cli.BasicParser)1 CommandLineParser (org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLineParser)1