Skip to content

Conversation

@scottamain
Copy link

Summary

Add a "Usage" rubric before the printing the command usage, same as the "Options" rubric.

This provides a nice visual separation between the description text and the code showing the usage format, which is especially useful when the introduction is many paragraphs that includes other examples itself.

This is a pretty common format for CLI docs, although a lot of them say "Synopsis" instead, which I believe is a terrible word to use because it’s a very uncommon word.

Tasks

  • [ x ] Added unit tests
  • [ x ] Added documentation for new features (where applicable)
  • [ x ] Added release notes (using reno)
  • [ x ] Ran test suite and style checks and built documentation (tox)

@scottamain scottamain force-pushed the print-usage branch 2 times, most recently from bdf6762 to 2049f04 Compare November 9, 2025 08:29
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