commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLI-199) Improve HelpFormatter by making renderOptions() and renderWrappedText() public
Date Sat, 19 Jun 2010 22:30:24 GMT

    [ https://issues.apache.org/jira/browse/CLI-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880561#action_12880561
] 

Emmanuel Bourg commented on CLI-199:
------------------------------------

I'm still no really sure to understand what you are trying to achieve, a real life example
would certainly help. Did you consider using a StringWriter?

> Improve HelpFormatter by making renderOptions() and renderWrappedText() public
> ------------------------------------------------------------------------------
>
>                 Key: CLI-199
>                 URL: https://issues.apache.org/jira/browse/CLI-199
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: CLI-1.x
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: gg
>            Priority: Trivial
>         Attachments: HelpFormatter.java
>
>
> Under certain circumstances it is usefull that HelpFormatter printing methods return
a string buffer which can be used in further processing instead of direct printing to a PW
or std.out. 
> When having a closer look at the source one can easily retrieve string buffers with formatted
text by changing the visibility of renderOptions() and renderWrappedText()  from protected
to public. This will make the "core" formatting methods available without adding additional
functionallity to the HelpFormatter.
> Another option would be to add a set of print....() methods returning the SB instead
of printing its content.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message