aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images/diff.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-05 15:57:08 +0200
committerGitHub <noreply@github.com>2020-05-05 15:57:08 +0200
commit4a1331d0afd9a21ff9465916d4006ff7297ae07c (patch)
tree97b56fc4361ed81c84dff9e07d46abf302670f1b /cmd/podman/images/diff.go
parentc313eec620becf710af925c02b7e5dfd80bd9ba6 (diff)
parent6ed3b8841f00d2aa1f86678c079a119e027b0d66 (diff)
downloadpodman-4a1331d0afd9a21ff9465916d4006ff7297ae07c.tar.gz
podman-4a1331d0afd9a21ff9465916d4006ff7297ae07c.tar.bz2
podman-4a1331d0afd9a21ff9465916d4006ff7297ae07c.zip
Merge pull request #6077 from rhatdan/v2
Fix errors found when comparing podman v1 --help versus V2
Diffstat (limited to 'cmd/podman/images/diff.go')
-rw-r--r--cmd/podman/images/diff.go5
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")