Skip to content

Generate CLI manual sections from source option declarations - #3057

Merged
madeye merged 1 commit into
masterfrom
feature/generated-cli-docs
Sep 12, 2026
Merged

Generate CLI manual sections from source option declarations#3057
madeye merged 1 commit into
masterfrom
feature/generated-cli-docs

Conversation

@madeye

@madeye madeye commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

CLI option lists were maintained separately from their parsers, leaving missing flags and obsolete descriptions in the manuals. Generate SYNOPSIS and OPTIONS for all six CLI tools from their getopt declarations and source documentation comments, and derive cipher lists from the C tables. The overview manual links to each command's generated reference.

CMake regenerates man/HTML inputs in the build directory without running target binaries. CI checks committed pages for drift, tests the generator, and renders both formats. The documentation build also supports Homebrew XML catalogs on Apple Silicon while honoring explicit catalog configuration.

Validation: workflow/Python lint and generated-file checks passed; 10 generator regression tests, 35 CTest tests, 131 setup assertions, and three 10 MB stress tests passed. All seven man pages and seven HTML pages built locally. Rendered manuals contain every declared flag; incremental regeneration and unchanged rebuild behavior were verified.

@madeye
madeye merged commit b281b73 into master Sep 12, 2026
26 checks passed
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