Skip to content

Commit

Permalink
Merge pull request #80 from adevinta/help-usage
Browse files Browse the repository at this point in the history
cmd/lava: show usage line as code block in "lava help"
  • Loading branch information
jroimartin authored May 14, 2024
2 parents eb98eb7 + 8b9c7fe commit 6fe9c24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/lava/internal/help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ Additional help topics:
Use "lava help <topic>" for more information about that topic.
`

const helpTemplate = `{{if .Run}}usage: lava {{.UsageLine}}
const helpTemplate = `{{if .Run}}Usage:
lava {{.UsageLine}}
{{end}}{{.Long | trim}}
`

0 comments on commit 6fe9c24

Please sign in to comment.