From 15552750f6a45b131d40c95bc7210a50862ce1f8 Mon Sep 17 00:00:00 2001 From: v01dstar Date: Fri, 24 Jun 2016 17:57:03 +0800 Subject: [PATCH] fix: detach flag was parsed incorrectly --- nmz/cli/container/run/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmz/cli/container/run/run.go b/nmz/cli/container/run/run.go index 48eda92..75d89de 100644 --- a/nmz/cli/container/run/run.go +++ b/nmz/cli/container/run/run.go @@ -39,7 +39,7 @@ func prepare(args []string) (dockerOpt *docker.CreateContainerOptions, removeOnE return } removeOnExit = flagSet.IsSet("-rm") - detach = flagSet.IsSet("detach") + detach = flagSet.IsSet("d") || flag.IsSet("-detach") nmzCfgPath := flagSet.Lookup("-nmz-autopilot").Value.String() nmzCfg, err = newConfig(nmzCfgPath)