Command::help_template
help_template
Section titled “help_template ”Sets the help template to be used, overriding the default format.
Example
Section titled “Example”name = "myprog"help-template = "{before-help}{name} {version}\n{author-with-newline}{about-with-newline}\n{usage-heading} {usage}\n\n{all-args}{after-help}"[args]
name: myproghelp-template: |- {before-help}{name} {version} {author-with-newline}{about-with-newline} {usage-heading} {usage}
{all-args}{after-help}args: {}
{ "name": "myprog", "help-template": "{before-help}{name} {version}\n{author-with-newline}{about-with-newline}\n{usage-heading} {usage}\n\n{all-args}{after-help}", "args": {}}
myprog --help
Output
Section titled “Output”myprog
Usage: myprog
Options: -h, --help Print help