diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-04 10:52:29 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-04 14:16:34 -0400 |
commit | 6ed3b8841f00d2aa1f86678c079a119e027b0d66 (patch) | |
tree | 4befccb87c0b5e4208af4e3ed92b144d7ba45c59 /cmd/podman/images/diff.go | |
parent | 01aad516e012fe46179e053addd7a8a84788228b (diff) | |
download | podman-6ed3b8841f00d2aa1f86678c079a119e027b0d66.tar.gz podman-6ed3b8841f00d2aa1f86678c079a119e027b0d66.tar.bz2 podman-6ed3b8841f00d2aa1f86678c079a119e027b0d66.zip |
Fix errors found when comparing podman v1 --help versus V2
Mainly add missing commands to podman image, podman containers, podman system
Also fix some informations messages and descriptions.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/images/diff.go')
-rw-r--r-- | cmd/podman/images/diff.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/images/diff.go b/cmd/podman/images/diff.go index 7cfacfc6c..c24f98369 100644 --- a/cmd/podman/images/diff.go +++ b/cmd/podman/images/diff.go @@ -6,6 +6,7 @@ import ( "github.com/containers/libpod/pkg/domain/entities" "github.com/pkg/errors" "github.com/spf13/cobra" + "github.com/spf13/pflag" ) var ( @@ -28,9 +29,11 @@ func init() { Command: diffCmd, Parent: imageCmd, }) + diffFlags(diffCmd.Flags()) +} +func diffFlags(flags *pflag.FlagSet) { diffOpts = &entities.DiffOptions{} - flags := diffCmd.Flags() flags.BoolVar(&diffOpts.Archive, "archive", true, "Save the diff as a tar archive") _ = flags.MarkDeprecated("archive", "Provided for backwards compatibility, has no impact on output.") flags.StringVar(&diffOpts.Format, "format", "", "Change the output format") |