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