show help when running goctl docker without any flags (#1679)

close #1677
This commit is contained in:
fang duan
2022-04-17 20:57:46 +08:00
committed by GitHub
parent 97bf3856c1
commit db99addc64

View File

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