From c7d47a59f1060ccd0442e70b0dada2621435cb0d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 14 Nov 2022 16:36:05 +0530 Subject: [PATCH] When running kitty-tool without arguments show usage --- tools/cmd/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/cmd/main.go b/tools/cmd/main.go index 6d53860f6..97090173e 100644 --- a/tools/cmd/main.go +++ b/tools/cmd/main.go @@ -12,6 +12,10 @@ func main() { root := cli.NewRootCommand() root.ShortDescription = "Fast, statically compiled implementations for various kitty command-line tools" root.Usage = "command [command options] [command args]" + root.Run = func(cmd *cli.Command, args []string) (int, error) { + cmd.ShowHelp() + return 0, nil + } tool.KittyToolEntryPoints(root) completion.EntryPoint(root)