Merge pull request #11121 from shishir-a412ed/docker_help_issue
Fix: docker -d -h start daemon instead of showing help menu
This commit is contained in:
commit
8e107a9321
|
@ -70,6 +70,10 @@ func main() {
|
||||||
setDefaultConfFlag(flTrustKey, defaultTrustKeyFile)
|
setDefaultConfFlag(flTrustKey, defaultTrustKeyFile)
|
||||||
|
|
||||||
if *flDaemon {
|
if *flDaemon {
|
||||||
|
if *flHelp {
|
||||||
|
flag.Usage()
|
||||||
|
return
|
||||||
|
}
|
||||||
mainDaemon()
|
mainDaemon()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue