rich-click icon indicating copy to clipboard operation
rich-click copied to clipboard

Default value gets moved to its own line when the description is 2+ lines long

Open apcamargo opened this issue 2 years ago • 3 comments

I'm not really sure if this is the expected behavior. If so, please ignore this issue.

When an option descriptions is 2+ lines long, the default value text is moved to an additional line, even when it would fit by the side of the description.

Current behavior:

╭─ Advanced options ───────────────────────────────────────────────────────────────────────────────╮
│  --sensitivity  -s  FLOAT  See there how easy that is. It's amazing what you can do with a       │
│                            little love in your heart.                                            │
│                            [default: 3.5]                                                        │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

What I expected:

╭─ Advanced options ───────────────────────────────────────────────────────────────────────────────╮
│  --sensitivity  -s  FLOAT  See there how easy that is. It's amazing what you can do with a       │
│                            little love in your heart. [default: 3.5]                             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Vanilla click:

  -s, --sensitivity FLOAT      See there how easy that is. It's amazing what
                               you can do with love.  [default: 3.5]

apcamargo avatar Mar 03 '22 06:03 apcamargo