Skip to content

Wrap help to the terminal and hide env values in it (AGI-1169) - #84

Closed
zmofei wants to merge 1 commit into
mainfrom
AGI-1169-help-wrap
Closed

zmofei wants to merge 1 commit into
mainfrom
AGI-1169-help-wrap

Conversation

@zmofei

@zmofei zmofei commented Oct 8, 2026

Copy link
Copy Markdown
Member

Top-level --help printed each option on one line however long, so five lines ran past 100 columns and an 80-column terminal folded them back to column 0. This turns on clap's wrap_help: help wraps to the terminal width, or 100 columns when stdout isn't a terminal.

Env-backed options also read [env: MAPBOX_USERNAME=] when unset and printed the variable's value when set; only --token hid it. All of them now read [env: NAME]. The two hand-written notes on --timeout and --output drop their = to match.

wrap_help adds four crates to Cargo.lock: terminal_size, rustix, errno, linux-raw-sys.

Verified: both new tests fail with the change backed out; checked help output piped and with COLUMNS=80.
Not checked: Windows terminal-width detection (CI only), and cargo-audit on the new crates until CI runs.

@zmofei

zmofei commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Merged into #83 so the top-level help changes can be reviewed together.

@zmofei zmofei closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

locationai-team-skills Opened via the location-ai PR creation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant