spiegel_podman/cmd/podman/play.go
Daniel J Walsh ccbc4fb006
Don't show global flags except for podman command
Subcommands should not be showing the global flags.  This causes the important
information to scroll off the screen.

Also fixed a typo on runCommmand (Too many 'm's)

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-02-12 05:14:38 -07:00

22 lines
482 B
Go

package main
import (
"github.com/containers/libpod/cmd/podman/cliconfig"
"github.com/spf13/cobra"
)
var (
playCommand cliconfig.PodmanCommand
playDescription = "Play a pod and its containers from a structured file."
_playCommand = &cobra.Command{
Use: "play",
Short: "Play a pod",
Long: playDescription,
}
)
func init() {
playCommand.Command = _playCommand
playCommand.SetUsageTemplate(UsageTemplate())
playCommand.AddCommand(getPlaySubCommands()...)
}