Skip to content

Add writing-style standards; backtick inline code in help prose - #166

Open
lai-bianca wants to merge 1 commit into
mainfrom
help-text-style
Open

Add writing-style standards; backtick inline code in help prose#166
lai-bianca wants to merge 1 commit into
mainfrom
help-text-style

Conversation

@lai-bianca

Copy link
Copy Markdown
Collaborator

Adds docs/agents/writing-style.md (prose standards plus one enforced rule: inline code in help prose is always backticked) and tests/test_help_style.py, which fails CI naming any bare --flag in the help surface's prose fields. Wraps the ~50 existing bare mentions in the source help strings and regenerates the help.json snapshot.

Why: the hosted docs now generate their CLI reference from help --json, and their renderer displays a bare --flag in prose as an em dash plus the flag name. Backticks also give agents unambiguous literal boundaries, and they are already this CLI's help-text voice.

Deliberately exempt: topic bodies and usage lines (pre-formatted terminal layouts and copy-pasteable commands, where backticks would corrupt the rendering).

Full suite passes (667 tests), ruff and ty clean. Referenced from CLAUDE.md and CONTRIBUTING.md.

🤖 Generated with Claude Code

New docs/agents/writing-style.md: inline code (flags, commands, paths,
env vars) is always backticked in help text and docstrings. The hosted
docs generate their CLI reference from help --json, where a bare --flag
renders as an em dash plus the flag name; backticks also make literals
unambiguous for agents. tests/test_help_style.py enforces the flag rule
across the help surface's prose fields (topic bodies exempt: they are
pre-formatted terminal layouts). Wraps the ~50 existing bare mentions
and regenerates the help.json snapshot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant