You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
434 B

{{.Header}} {{.Name}}
{{- if .Description}}
{{.Description}}
{{- end}}
{{if .Tree}}
```
{{.Tree}}
```
{{end}}
```{{range $flag := .Flags}}
[--{{$flag.Name}}]{{if not $flag.IsBool}}=[value]{{end}}
{{- end}}
```
{{- if .Usage}}
**Usage**:
```
{{.Usage}}
```
{{- end -}}
{{range $flag := .Flags}}
**--{{$flag.Name}}**{{if not $flag.IsBool}}=""{{end}}: {{$flag.Usage}}{{if $flag.Default}} (default: `{{$flag.Default}}`){{end}}
{{end}}