From 20dd3744cc312a504e0ad9d595f4d9c6f29226bf Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 16 Nov 2005 13:03:07 +0000 Subject: [PATCH] fix boolean args git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@345000 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/bootstrap/util/SimpleArgumentParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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