File tree Expand file tree Collapse file tree
src/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ public Object getOptionObject(String opt)
105105 * @return the value parsed into a particluar object
106106 * @throws ParseException if there are problems turning the option value into the desired type
107107 * @see PatternOptionBuilder
108+ * @since 1.2
108109 */
109110 public Object getParsedOptionValue (String opt ) throws ParseException
110111 {
@@ -118,7 +119,7 @@ public Object getParsedOptionValue(String opt) throws ParseException
118119
119120 Object type = option .getType ();
120121
121- return (res == null ) ? null : TypeHandler .createValue (res , type );
122+ return (res == null ) ? null : TypeHandler .createValue (res , type );
122123 }
123124
124125 /**
Original file line number Diff line number Diff line change @@ -303,19 +303,21 @@ public String getArgName()
303303 }
304304
305305 /**
306- * Comparator used to sort the options when they output in help text
306+ * Comparator used to sort the options when they output in help text.
307+ * Defaults to case-insensitive alphabetical sorting by option key.
307308 *
308- * Defaults to case-insensitive alphabetical sorting by option key
309+ * @since 1.2
309310 */
310311 public Comparator getOptionComparator ()
311312 {
312313 return optionComparator ;
313314 }
314315
315316 /**
316- * Set the comparator used to sort the options when they output in help text
317+ * Set the comparator used to sort the options when they output in help text.
318+ * Passing in a null parameter will set the ordering to the default mode.
317319 *
318- * Passing in a null parameter will set the ordering to the default mode
320+ * @since 1.2
319321 */
320322 public void setOptionComparator (Comparator comparator )
321323 {
You can’t perform that action at this time.
0 commit comments