SetHelpTemplate sets help template to be used. Application can use it to set custom template.
(s string)
| 356 | |
| 357 | // SetHelpTemplate sets help template to be used. Application can use it to set custom template. |
| 358 | func (c *Command) SetHelpTemplate(s string) { |
| 359 | if s == "" { |
| 360 | c.helpTemplate = nil |
| 361 | return |
| 362 | } |
| 363 | c.helpTemplate = tmpl(s) |
| 364 | } |
| 365 | |
| 366 | // SetVersionTemplate sets version template to be used. Application can use it to set custom template. |
| 367 | func (c *Command) SetVersionTemplate(s string) { |