diff --git a/tools/goctl/docker/docker.go b/tools/goctl/docker/docker.go index 90ac7e2d..8441db34 100644 --- a/tools/goctl/docker/docker.go +++ b/tools/goctl/docker/docker.go @@ -45,6 +45,10 @@ func DockerCommand(c *cli.Context) (err error) { } }() + if c.NumFlags() == 0 { + cli.ShowCommandHelpAndExit(c, "docker", 1) + } + goFile := c.String("go") home := c.String("home") version := c.String("version")