Skip to content

Commit 3864adf

Browse files
committed
Applying patch from CLI-96 to make printWrapped public
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@412201 13f79535-47bb-0310-9956-ffa450edef68
1 parent c8063d9 commit 3864adf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/java/org/apache/commons/cli2/util/HelpFormatter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,15 @@ public void printFooter() {
279279
* Prints a string wrapped if necessary
280280
* @param text the string to wrap
281281
*/
282-
protected void printWrapped(final String text) {
282+
public void printWrapped(final String text) {
283283
for (final Iterator i = wrap(text, pageWidth).iterator(); i.hasNext();) {
284284
printGutterLeft();
285285
pad((String) i.next(), pageWidth, out);
286286
printGutterRight();
287287
out.println();
288288
}
289+
290+
out.flush();
289291
}
290292

291293
/**

0 commit comments

Comments
 (0)