alexflint / go-arg

Struct-based argument parsing in Go
https://pkg.go.dev/github.com/alexflint/go-arg
BSD 2-Clause "Simplified" License
2.04k stars 100 forks source link

Fix testable example output comment formatting #257

Closed hhromic closed 4 months ago

hhromic commented 4 months ago

The output of the testable example Example_helpPlaceholder is not working correctly due to wrong formatting. Observe the example in pkg.go.dev and note how the Output section is empty.

This simple PR fixes the formatting so the Output section works correctly. I discovered this issue while running golangci-lint over the repository :)

alexflint commented 4 months ago

Wonderful, thanks!