From 27e25953d28218d14b2e4b47e6b785f79a592087 Mon Sep 17 00:00:00 2001
From: Manoj Vivek
Date: Wed, 12 Oct 2022 12:27:35 +0530
Subject: [PATCH] Showing help message on error
---
main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.go b/main.go
index 77cbc7f..d3fbbd8 100644
--- a/main.go
+++ b/main.go
@@ -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,