HDDS-583. SCM returns zero as the return code, even when invalid options are passed. Contributed by Namit Maheshwari.
(cherry picked from commit 6a39739316795a4828833e99d78aadc684270f98)
This commit is contained in:
parent
308c614d4a
commit
056f480093
@ -513,7 +513,7 @@ public static boolean scmInit(OzoneConfiguration conf) throws IOException {
|
||||
|
||||
private static StartupOption parseArguments(String[] args) {
|
||||
int argsLen = (args == null) ? 0 : args.length;
|
||||
StartupOption startOpt = StartupOption.HELP;
|
||||
StartupOption startOpt = null;
|
||||
if (argsLen == 0) {
|
||||
startOpt = StartupOption.REGULAR;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user