diff options
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r-- | cmd/podman/create.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 78b206543..6b5151c1b 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -49,6 +49,7 @@ var createCommand = cli.Command{ Flags: createFlags, Action: createCmd, ArgsUsage: "IMAGE [COMMAND [ARG...]]", + HideHelp: true, SkipArgReorder: true, UseShortOptionHandling: true, } @@ -57,6 +58,12 @@ func createCmd(c *cli.Context) error { // TODO should allow user to create based off a directory on the host not just image // Need CLI support for this + // Docker-compatibility: the "-h" flag for run/create is reserved for + // the hostname (see https://github.com/containers/libpod/issues/1367). + if c.Bool("help") { + cli.ShowCommandHelpAndExit(c, "run", 0) + } + if err := validateFlags(c, createFlags); err != nil { return err } |