mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
81e121edd6
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.
15 lines
135 B
Text
15 lines
135 B
Text
{bin} {version}
|
|
{author}
|
|
{about}
|
|
|
|
USAGE:
|
|
{usage}
|
|
|
|
FLAGS:
|
|
{flags}
|
|
OPTIONS:
|
|
{options}
|
|
ARGS:
|
|
{positionals}
|
|
SUBCOMMANDS:
|
|
{subcommands}
|