diff --git a/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/util/SimpleArgumentParser.java b/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/util/SimpleArgumentParser.java index 9d4e043336..5ba3debc54 100644 --- a/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/util/SimpleArgumentParser.java +++ b/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/util/SimpleArgumentParser.java @@ -156,7 +156,8 @@ public class SimpleArgumentParser public boolean isArgumentSet( String argument ) { - return arguments.containsKey( argument ); + Argument arg = (Argument) arguments.get( argument ); + return arg.isSet(); } private static class Argument