Skip to content

Cut help descriptions at a sentence end, not at any dot - #87

Closed
zmofei wants to merge 1 commit into
mainfrom
fix/help-first-sentence
Closed

zmofei wants to merge 1 commit into
mainfrom
fix/help-first-sentence

Conversation

@zmofei

@zmofei zmofei commented Oct 8, 2026

Copy link
Copy Markdown
Member

first_sentence cut a parameter's spec description at its first ., so help stopped inside ids, numbers and "e.g.":

<tilesets>  Tileset ID(s) in the format `username
<lat>       Latitude in degrees (range -85
<quality>   Compression quality parameter appended to format (e

A sentence now ends at a full stop followed by white space, or at the end of the text, and e.g. / i.e. don't count. The unit test had pinned the old cut ("Tileset ID in the format \username"); it now pins the whole sentence, plus a decimal and an e.g.` case.

Verified: diffed -h for all 35 API commands before and after. Exactly 9 lines changed, all previously cut mid-word (tilesets, tilequery, static, styles download); nothing else moved. --schema is unaffected, since it never used this function.
Not checked: descriptions that use other abbreviations ending in "." mid-sentence; none in the bundled specs do today.

@zmofei zmofei added the locationai-team-skills Opened via the location-ai PR creation skill label Oct 8, 2026
@zmofei

zmofei commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Merged into #83 so all the help changes can be reviewed together.

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