#3 Newlines in descriptions


Would be nice to be able to specify new lines in options descriptions and have them formatted correctly. For instance, I have a parameter which maps to an enum, defined as follows:

cmdLine.accepts("type","Specify the output type.\n'raw' = raw data.\n'java' = java class");

At present, 'raw' and 'java' descriptions end up at the left of the help output, rather then within the description column.


  • Paul Holser

    Paul Holser - 2009-08-10
    • assigned_to: nobody --> pholser
  • Nobody/Anonymous

    Hi Paul,

    I committed a change to CVS HEAD recently that should treat embedded newlines specially -- as continuing in the intended column rather than bleeding over accidentally onto a new line of output. This looks for System.getProperty("line.separator") rather than just going after '\n', so take note of that. Thanks for reporting the problem!


  • Paul Holser

    Paul Holser - 2009-10-17
    • labels: --> Interface Improvements (example)
    • status: open --> pending
  • Paul Holser

    Paul Holser - 2009-10-17

    Resolved in 3.2.

  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks