mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
Fix help commands to show short and long description.
Cleanup lots of help information to look good when displayed. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -12,11 +12,9 @@ import (
|
||||
|
||||
var (
|
||||
podStartCommand cliconfig.PodStartValues
|
||||
podStartDescription = `
|
||||
podman pod start
|
||||
podStartDescription = `The pod name or ID can be used.
|
||||
|
||||
Starts one or more pods. The pod name or ID can be used.
|
||||
`
|
||||
All containers defined in the pod will be started.`
|
||||
_podStartCommand = &cobra.Command{
|
||||
Use: "start [flags] POD [POD...]",
|
||||
Short: "Start one or more pods",
|
||||
@@ -37,6 +35,7 @@ var (
|
||||
|
||||
func init() {
|
||||
podStartCommand.Command = _podStartCommand
|
||||
podStartCommand.SetHelpTemplate(HelpTemplate())
|
||||
podStartCommand.SetUsageTemplate(UsageTemplate())
|
||||
flags := podStartCommand.Flags()
|
||||
flags.BoolVarP(&podStartCommand.All, "all", "a", false, "Start all pods")
|
||||
|
||||
Reference in New Issue
Block a user