charmbracelet / charmbracelet/fang

Flag formatting loses table spacing making it harder to read

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.9k
Forks
47
PR merge metrics
No merged PRs in 30d

Description

### Description

When switching over to fang, the table output of flags is lost. This generally makes it harder to read the flags, and the associated help because there isn't consistent positioning. The help text also wraps back into the flag output making that somewhat confusing.

Default Cobra:

Image

Fang:

Image

It would be nice to either have some options to configure the layout of the flags or to default it more like Cobra's default output.

### Version

_No response_

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Reproduce Fang's flag help output and compare its table spacing and wrapping with Cobra's default output; done means flag columns remain consistently aligned and help text no longer wraps into the flag output, or the layout can be configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.