When running kitty-tool without arguments show usage

This commit is contained in:
Kovid Goyal 2022-11-14 16:36:05 +05:30
parent 7eae176b88
commit c7d47a59f1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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