Skip to content

Commit 03b34b2

Browse files
authored
Merge pull request #1 from polarsignals/help-on-error
Showing help message on error
2 parents e6e3b4e + 27e2595 commit 03b34b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var cli struct {
4040
}
4141

4242
func main() {
43-
ctx := kong.Parse(&cli)
43+
ctx := kong.Parse(&cli, kong.UsageOnError())
4444
// Call the Run() method of the selected parsed command.
4545
err := ctx.Run(&Context{
4646
Server: cli.Server,

0 commit comments

Comments
 (0)