Diff of /jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/option/PropertyOption.java
Parent Directory
| Revision Log
| Patch
--- jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/option/PropertyOption.java 2005/06/03 21:14:45 179891
+++ jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/option/PropertyOption.java 2005/06/03 21:15:13 179892
@@ -1,5 +1,5 @@
/**
- * Copyright 2003-2004 The Apache Software Foundation
+ * Copyright 2003-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -68,7 +68,7 @@ public class PropertyOption extends Opti
*/
public static final PropertyOption INSTANCE = new PropertyOption();
- public boolean canProcess(final String argument) {
+ public boolean canProcess(final WriteableCommandLine commandLine, final String argument) {
return argument != null
&& argument.startsWith(optionString)
&& argument.length() > optionString.length();
@@ -85,7 +85,7 @@ public class PropertyOption extends Opti
final String arg = (String)arguments.next();
- if (!canProcess(arg)) {
+ if (!canProcess(commandLine, arg)) {
throw new OptionException(this, "cli.error.unexpected", arg);
}