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

close #1677
master
fang duan 3 years ago committed by GitHub
parent 97bf3856c1
commit db99addc64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save