pub const SECTIONS: [&'static str; 6];Expand description
The sections a help_template may name.
A closed vocabulary on purpose. The alternative — handing a template the metadata tree and letting it lay a page out — makes this renderer’s internals public API and asks every implementation of the spec to agree on a template language’s semantics rather than on where a section starts and ends.
What each one holds:
| section | content |
|---|---|
about | before_help, the version banner, and the description |
usage | the Usage: synopsis, however many lines it takes |
commands | the subcommand list, or the flattened bodies under flatten_help |
args | every argument group, each under its heading |
flags | this command’s flag groups, then the globals it inherits |
after_help | examples, after_help, and the author/license footer on a long page |