mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
show help when running goctl docker without any flags (#1679)
close #1677
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user