From 41017c56fbed1eb6b8bacf0c530155f388bdc1fb Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Fri, 10 May 2024 10:26:58 -0400 Subject: [PATCH] fix: display help if no args provided --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index e5d72cd9..8d2ca618 100644 --- a/main.go +++ b/main.go @@ -102,6 +102,10 @@ var ( //nolint func main() { + //print help if no command given + if len(os.Args) < 2 { + os.Args = append(os.Args, "--help") + } ctx := kong.Parse(&CLI) logger := logging.GetRoot()