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:
Daniel J Walsh
2019-03-06 17:10:20 -05:00
parent 1b253cf73a
commit 9a39c60e46
75 changed files with 245 additions and 200 deletions

View File

@@ -15,11 +15,8 @@ import (
var (
startCommand cliconfig.StartValues
startDescription = `
podman start
startDescription = `Starts one or more containers. The container name or ID can be used.`
Starts one or more containers. The container name or ID can be used.
`
_startCommand = &cobra.Command{
Use: "start [flags] CONTAINER [CONTAINER...]",
Short: "Start one or more containers",
@@ -37,6 +34,7 @@ var (
func init() {
startCommand.Command = _startCommand
startCommand.SetHelpTemplate(HelpTemplate())
startCommand.SetUsageTemplate(UsageTemplate())
flags := startCommand.Flags()
flags.BoolVarP(&startCommand.Attach, "attach", "a", false, "Attach container's STDOUT and STDERR")