coloredcobra icon indicating copy to clipboard operation
coloredcobra copied to clipboard

Fix flag description hyphen incorrectly styled

Open gabe565 opened this issue 1 year ago • 0 comments

When a flag description contains a hyphen, the flag style is incorrectly applied. For example, see the description of the --config flag: image

This PR changes the flag regex to only match flags when the hyphen is preceded by a space.

Here's the same example after the fix: image

Fixes #2

gabe565 avatar Aug 07 '24 08:08 gabe565