浏览代码

Merge pull request #1242 from dotcloud/remove_usage_from_test

remove usage from tests
Guillaume J. Charmes 12 年之前
父节点
当前提交
e3be2e959b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      container.go

+ 1 - 0
container.go

@@ -94,6 +94,7 @@ func ParseRun(args []string, capabilities *Capabilities) (*Config, *HostConfig,
 	cmd := Subcmd("run", "[OPTIONS] IMAGE [COMMAND] [ARG...]", "Run a command in a new container")
 	if len(args) > 0 && args[0] != "--help" {
 		cmd.SetOutput(ioutil.Discard)
+		cmd.Usage = nil
 	}
 
 	flHostname := cmd.String("h", "", "Container host name")