mirror of https://github.com/containers/podman.git
pod create: restore help flag
It is not necessary to hide podman-pod-create's help flag. Therefore,
partially revert commit 6751b2c350
to restore the help flag.
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
Closes: #1379
Approved by: rhatdan
This commit is contained in:
parent
bbcad6f572
commit
a34d6b54fa
|
@ -71,7 +71,6 @@ var podCreateCommand = cli.Command{
|
||||||
Description: podCreateDescription,
|
Description: podCreateDescription,
|
||||||
Flags: podCreateFlags,
|
Flags: podCreateFlags,
|
||||||
Action: podCreateCmd,
|
Action: podCreateCmd,
|
||||||
HideHelp: true,
|
|
||||||
SkipArgReorder: true,
|
SkipArgReorder: true,
|
||||||
UseShortOptionHandling: true,
|
UseShortOptionHandling: true,
|
||||||
OnUsageError: usageErrorHandler,
|
OnUsageError: usageErrorHandler,
|
||||||
|
@ -81,12 +80,6 @@ func podCreateCmd(c *cli.Context) error {
|
||||||
var options []libpod.PodCreateOption
|
var options []libpod.PodCreateOption
|
||||||
var err error
|
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 {
|
if err = validateFlags(c, createFlags); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue