Skip to content

Commit b9820f3

Browse files
committed
pw-args
1 parent 59263be commit b9820f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,7 @@ static String[] removePasswordArgs(String[] args) {
321321
}
322322
}
323323
if (index >= 0) {
324-
if (index + 1 >= args.length
325-
|| args[index + 1].startsWith("-")
326-
|| (keywordSet.contains(args[index + 1]))) {
324+
if (index + 1 >= args.length || keywordSet.contains(args[index + 1])) {
327325
return ArrayUtils.remove(args, index);
328326
}
329327
}

0 commit comments

Comments
 (0)