Skip to content

Commit

Permalink
Fix regression in CLI parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Sep 14, 2024
1 parent 52ca950 commit 5b9981a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/main/java/kanzi/app/Kanzi.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private static int processCommandLine(String[] args, Map<String, Object> map)

if (arg.startsWith("--verbose=") || (ctx == ARG_IDX_VERBOSE))
{
if (verboseLevel == null)
if (verboseLevel != null)
{
String msg = (ctx == ARG_IDX_VERBOSE) ? CMD_LINE_ARGS[ctx] : "--verbose";
printWarning(msg, " (duplicate verbosity).", verbose);
Expand Down

0 comments on commit 5b9981a

Please sign in to comment.