Skip to content

Document internal help page generation flow#3326

Closed
gdesai23 wants to merge 1 commit intopallets:mainfrom
gdesai23:docs-help-generation-flow
Closed

Document internal help page generation flow#3326
gdesai23 wants to merge 1 commit intopallets:mainfrom
gdesai23:docs-help-generation-flow

Conversation

@gdesai23
Copy link
Copy Markdown

@gdesai23 gdesai23 commented Apr 7, 2026

Summary

This documents the current internal flow for generating help pages in Click.

It covers:

  • the explicit --help path
  • the no_args_is_help path
  • how Context.get_help() delegates to Command.get_help()
  • how Command.format_help() assembles help sections
  • how Group.format_commands() adds the commands section
  • the role of HelpFormatter in rendering output

Why

Issue #3094 asks for documentation of the current help page generation path so maintainers have a shared understanding before making help-related changes.

Fixes #3094

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.

Document help page generation for maintainers

2 participants