[cli] Print help when no command is specified

This commit is contained in:
Neeraj Gupta 2024-06-18 14:25:21 +05:30
parent ecb0d47055
commit dcbdeca64e

View File

@ -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)
}