From dcbdeca64e93e1c05bc99a115f3edb2d0c690130 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:25:21 +0530 Subject: [PATCH] [cli] Print help when no command is specified --- cli/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/main.go b/cli/main.go index 88de93025a..ff78081fb8 100644 --- a/cli/main.go +++ b/cli/main.go @@ -75,6 +75,10 @@ func main() { } return } + if len(os.Args) == 1 { + // If no arguments are passed, show help + os.Args = append(os.Args, "help") + } cmd.Execute(&ctrl, AppVersion) }