This might be nitpicking, but a simple program:
package main
import (
"errors"
"github.com/alecthomas/kong"
)
type Config struct{}
func (c Config) Validate() error {
return errors.New("foobar")
}
func main() {
var config Config
kong.Parse(&config)
}
Outputs:
play: error: play: foobar
I find that double play in there ugly and unnecessary. Could it be removed?
This might be nitpicking, but a simple program:
Outputs:
I find that double
playin there ugly and unnecessary. Could it be removed?