mirror of
https://github.com/containers/podman.git
synced 2025-12-03 03:39:44 +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:
@@ -34,8 +34,7 @@ func (so stdoutStruct) Out() error {
|
||||
|
||||
var (
|
||||
diffCommand cliconfig.DiffValues
|
||||
diffDescription = fmt.Sprint(`Displays changes on a container or image's filesystem. The
|
||||
container or image will be compared to its parent layer`)
|
||||
diffDescription = fmt.Sprint(`Displays changes on a container or image's filesystem. The container or image will be compared to its parent layer.`)
|
||||
|
||||
_diffCommand = &cobra.Command{
|
||||
Use: "diff [flags] CONTAINER | IMAGE",
|
||||
@@ -54,6 +53,7 @@ var (
|
||||
|
||||
func init() {
|
||||
diffCommand.Command = _diffCommand
|
||||
diffCommand.SetHelpTemplate(HelpTemplate())
|
||||
diffCommand.SetUsageTemplate(UsageTemplate())
|
||||
flags := diffCommand.Flags()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user