Merge pull request #1242 from dotcloud/remove_usage_from_test

remove usage from tests
Upstream-commit: e3be2e959bb4729d25e44cb25bf4e8bf733d8d89
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-07-19 14:07:24 -07:00

View File

@ -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")