diff options
author | Valentin Rothberg <vrothberg@suse.com> | 2018-08-31 10:09:45 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-31 10:19:11 +0000 |
commit | a34d6b54fa8aa17c16b97ac6765bbe251522746d (patch) | |
tree | 7a16267e79e512ae1db362a5d0b2038ba142a068 /cmd | |
parent | bbcad6f572207779ead07127e6619961bc0758b9 (diff) | |
download | podman-a34d6b54fa8aa17c16b97ac6765bbe251522746d.tar.gz podman-a34d6b54fa8aa17c16b97ac6765bbe251522746d.tar.bz2 podman-a34d6b54fa8aa17c16b97ac6765bbe251522746d.zip |
pod create: restore help flag
It is not necessary to hide podman-pod-create's help flag. Therefore,
partially revert commit 6751b2c35040 to restore the help flag.
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
Closes: #1379
Approved by: rhatdan
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/pod_create.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go index 262a024d0..488fef869 100644 --- a/cmd/podman/pod_create.go +++ b/cmd/podman/pod_create.go @@ -71,7 +71,6 @@ var podCreateCommand = cli.Command{ Description: podCreateDescription, Flags: podCreateFlags, Action: podCreateCmd, - HideHelp: true, SkipArgReorder: true, UseShortOptionHandling: true, OnUsageError: usageErrorHandler, @@ -81,12 +80,6 @@ func podCreateCmd(c *cli.Context) error { var options []libpod.PodCreateOption var err error - // 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 } |