Skip to content

Commit

Permalink
Showing help message on error
Browse files Browse the repository at this point in the history
  • Loading branch information
manojVivek committed Oct 12, 2022
1 parent e8a636e commit 27e2595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var cli struct {
}

func main() {
ctx := kong.Parse(&cli)
ctx := kong.Parse(&cli, kong.UsageOnError())
// Call the Run() method of the selected parsed command.
err := ctx.Run(&Context{
Server: cli.Server,
Expand Down

0 comments on commit 27e2595

Please sign in to comment.