HBASE-10495 upgrade script is printing usage two times with help option.(Rajesh)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1567493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5938f5ad16
commit
8b99b91cb9
|
@ -84,7 +84,6 @@ public class UpgradeTo96 extends Configured implements Tool {
|
||||||
CommandLineParser parser = new GnuParser();
|
CommandLineParser parser = new GnuParser();
|
||||||
CommandLine cmd = parser.parse(options, args);
|
CommandLine cmd = parser.parse(options, args);
|
||||||
if (cmd.hasOption("h")) {
|
if (cmd.hasOption("h")) {
|
||||||
printUsage();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (cmd.hasOption("execute")) upgrade = true;
|
if (cmd.hasOption("execute")) upgrade = true;
|
||||||
|
|
Loading…
Reference in New Issue