Skip to content

ANSI styling sequences within the valueHelp parameter of addOption() causes incorrect usage display #879

Open
@timmaffett

Description

@timmaffett

If you include ANSI styling sequences in valueHelp parameters of addOption() is causes the usage display to display incorrect formatting because it is including the hidden ANSI escape sequences in the string length calculations.

Example

Image

The correct display would be:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions