make complex options to stand out

Upstream-commit: dcc9dfb27d49c7e7f58e04bf5656656f69e76fe1
Component: engine
This commit is contained in:
Mikhail Sobolev
2013-04-02 01:26:17 +03:00
parent 45293ca626
commit 21949938ee
+3 -1
View File
@@ -72,11 +72,13 @@ func ParseRun(args []string, stdout io.Writer) (*Config, error) {
flStdin := cmd.Bool("i", false, "Keep stdin open even if not attached")
flTty := cmd.Bool("t", false, "Allocate a pseudo-tty")
flMemory := cmd.Int64("m", 0, "Memory limit (in bytes)")
var flPorts ports
var flPorts ports
cmd.Var(&flPorts, "p", "Map a network port to the container")
var flEnv ListOpts
cmd.Var(&flEnv, "e", "Set environment variables")
if err := cmd.Parse(args); err != nil {
return nil, err
}