Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(HELP): Add a Templated Help system.
The strategy is to copy the template from the the reader to wrapped stream until a tag is found. Depending on its value, the appropriate content is copied to the wrapped stream. The copy from template is then resumed, repeating this sequence until reading the complete template. Tags arg given inside curly brackets: Valid tags are: * `{bin}` - Binary name. * `{version}` - Version number. * `{author}` - Author information. * `{usage}` - Automatically generated or given usage string. * `{all-args}` - Help for all arguments (options, flags, positionals arguments, and subcommands) including titles. * `{unified}` - Unified help for options and flags. * `{flags}` - Help for flags. * `{options}` - Help for options. * `{positionals}` - Help for positionals arguments. * `{subcommands}` - Help for subcommands. * `{after-help}` - Help for flags.
- Loading branch information