Author: tn
Date: Sat Feb 9 14:21:27 2013
New Revision: 1444365
URL: http://svn.apache.org/r1444365
Log:
[CLI-218] Clarify javadoc of CommandLine.getOptionValue.
Modified:
commons/proper/cli/trunk/src/changes/changes.xml
commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
Modified: commons/proper/cli/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/changes/changes.xml?rev=1444365&r1=1444364&r2=1444365&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/changes/changes.xml (original)
+++ commons/proper/cli/trunk/src/changes/changes.xml Sat Feb 9 14:21:27 2013
@@ -23,6 +23,10 @@
<body>
<release version="1.3" date="in SVN">
+ <action type="fix" dev="tn" issue="CLI-218" due-to="Sven">
+ Clarify javadoc for CommandLine.getOptionValue() that the first
specified
+ argument will be returned.
+ </action>
<action type="add" dev="tn" issue="CLI-214" due-to="Alexandru Mocanu">
Added new method Options.addOption(String, String).
</action>
Modified:
commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
URL:
http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java?rev=1444365&r1=1444364&r2=1444365&view=diff
==============================================================================
---
commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
(original)
+++
commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
Sat Feb 9 14:21:27 2013
@@ -133,7 +133,7 @@ public class CommandLine implements Seri
}
/**
- * Retrieve the argument, if any, of this option.
+ * Retrieve the first argument, if any, of this option.
*
* @param opt the name of the option
* @return Value of the argument if option is set, and has an argument,
@@ -147,7 +147,7 @@ public class CommandLine implements Seri
}
/**
- * Retrieve the argument, if any, of this option.
+ * Retrieve the first argument, if any, of this option.
*
* @param opt the character name of the option
* @return Value of the argument if option is set, and has an argument,
@@ -218,7 +218,7 @@ public class CommandLine implements Seri
}
/**
- * Retrieve the argument, if any, of an option.
+ * Retrieve the first argument, if any, of an option.
*
* @param opt name of the option
* @param defaultValue is the default value to be returned if the option