mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
When running kitty-tool without arguments show usage
This commit is contained in:
@@ -12,6 +12,10 @@ func main() {
|
|||||||
root := cli.NewRootCommand()
|
root := cli.NewRootCommand()
|
||||||
root.ShortDescription = "Fast, statically compiled implementations for various kitty command-line tools"
|
root.ShortDescription = "Fast, statically compiled implementations for various kitty command-line tools"
|
||||||
root.Usage = "command [command options] [command args]"
|
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)
|
tool.KittyToolEntryPoints(root)
|
||||||
completion.EntryPoint(root)
|
completion.EntryPoint(root)
|
||||||
|
|||||||
Reference in New Issue
Block a user