+
Skip to content

description newline stripping #376

Open
@lrstanley

Description

@lrstanley

Looks as though description newlines are stripped, which means printing any type of structured output inside of descriptions will break. It looks like this is due to description being added to help, and thus help being passed into the line wrapping functionality causes it to trim those things.

Some examples of things that I've seen other cli tools have in their "about/description":

  • ASCII logo art
  • licenses (by themselves I guess don't require non-wrapping, in many scenarios, but do span many lines, and can complicate things if mixed with other description output)
  • version/build/author/link info (see example below)

I guess my question is, does this make sense to have as a supported feature? If so, should it be toggleable? E.g. kong.Description() and kong.LongDescription() or kong.FormattedDescription(), maybe (with a warning that it won't obey wrapping?)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载