diff --git a/bin/hbase-config.cmd b/bin/hbase-config.cmd index 654a3c98500..3b7b713abfd 100644 --- a/bin/hbase-config.cmd +++ b/bin/hbase-config.cmd @@ -37,7 +37,7 @@ if "%1" == "--help" ( echo Error usage! You should use it like 'hbase --help' or 'hbase -h'; exit /B 2 ) -if "%1" == "--help" ( +if "%1" == "-h" ( echo Error usage! You should use it like 'hbase --help' or 'hbase -h'; exit /B 2 ) diff --git a/bin/hbase.cmd b/bin/hbase.cmd index 426517cd193..a927227aa9f 100644 --- a/bin/hbase.cmd +++ b/bin/hbase.cmd @@ -63,7 +63,7 @@ if "%1" == "--help" ( goto :print_usage exit /B 0 ) -if "%1" == "--help" ( +if "%1" == "-h" ( goto :print_usage exit /B 0 )