From 30a6c63827e69ee0b9171b7d0095ec7286349454 Mon Sep 17 00:00:00 2001 From: WenFeiYi Date: Fri, 19 Jun 2020 22:48:10 +0530 Subject: [PATCH] HBASE-24550 Passing '-h' or '--help' to bin/hbase doesn't do as expected (ADDENDUM) Closes #1932 Signed-off-by: Viraj Jasani --- bin/hbase-config.cmd | 2 +- bin/hbase.cmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 )