File tree Expand file tree Collapse file tree
main/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <body >
2424
2525 <release version =" 1.3" date =" in SVN" >
26+ <action type =" fix" dev =" tn" issue =" CLI-218" due-to =" Sven" >
27+ Clarify javadoc for CommandLine.getOptionValue() that the first specified
28+ argument will be returned.
29+ </action >
2630 <action type =" add" dev =" tn" issue =" CLI-214" due-to =" Alexandru Mocanu" >
2731 Added new method Options.addOption(String, String).
2832 </action >
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public Object getOptionObject(char opt)
133133 }
134134
135135 /**
136- * Retrieve the argument, if any, of this option.
136+ * Retrieve the first argument, if any, of this option.
137137 *
138138 * @param opt the name of the option
139139 * @return Value of the argument if option is set, and has an argument,
@@ -147,7 +147,7 @@ public String getOptionValue(String opt)
147147 }
148148
149149 /**
150- * Retrieve the argument, if any, of this option.
150+ * Retrieve the first argument, if any, of this option.
151151 *
152152 * @param opt the character name of the option
153153 * @return Value of the argument if option is set, and has an argument,
@@ -218,7 +218,7 @@ public String[] getOptionValues(char opt)
218218 }
219219
220220 /**
221- * Retrieve the argument, if any, of an option.
221+ * Retrieve the first argument, if any, of an option.
222222 *
223223 * @param opt name of the option
224224 * @param defaultValue is the default value to be returned if the option
You can’t perform that action at this time.
0 commit comments