Author: bayard Date: Thu Feb 9 21:07:51 2006 New Revision: 376557 URL: http://svn.apache.org/viewcvs?rev=376557&view=rev Log: Applying the setDescription addition to CLI1's Option class as mentioned in #31151 by . I can't see any harm in it
Modified: jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli/Option.java Modified: jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli/Option.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli/Option.java?rev=376557&r1=376556&r2=376557&view=diff ============================================================================== --- jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli/Option.java (original) +++ jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli/Option.java Thu Feb 9 21:07:51 2006 @@ -271,6 +271,16 @@ return this.description; } + /** + * Sets the self-documenting description of this Option + * + * @param description The description of this option + */ + public void setDescription(String description) + { + this.description = description; + } + /** * Query to see if this Option requires an argument * @@ -603,4 +613,4 @@ { return this.values.size() == 0; } -} \ No newline at end of file +} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]