Skip to content

Commit f671feb

Browse files
committed
Applying the setDescription addition to CLI1's Option class as mentioned in #31151 by . I can't see any harm in it
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@376557 13f79535-47bb-0310-9956-ffa450edef68
1 parent d5d9daf commit f671feb

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/java/org/apache/commons/cli/Option.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,16 @@ public String getDescription()
271271
return this.description;
272272
}
273273

274+
/**
275+
* Sets the self-documenting description of this Option
276+
*
277+
* @param description The description of this option
278+
*/
279+
public void setDescription(String description)
280+
{
281+
this.description = description;
282+
}
283+
274284
/**
275285
* Query to see if this Option requires an argument
276286
*
@@ -603,4 +613,4 @@ private boolean hasNoValues()
603613
{
604614
return this.values.size() == 0;
605615
}
606-
}
616+
}

0 commit comments

Comments
 (0)