summaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2022-05-25 08:18:46 -0700
committerJhon Honce <jhonce@redhat.com>2022-05-25 08:50:12 -0700
commit338f0123706f31721e89c2e6223c7c493b577dc7 (patch)
treeed04ffc226c357f5564f57c654ab9f364155da39 /cmd/podman/images
parentdbd4ee04b8dca865e6001d94565755fae60089c9 (diff)
downloadpodman-338f0123706f31721e89c2e6223c7c493b577dc7.tar.gz
podman-338f0123706f31721e89c2e6223c7c493b577dc7.tar.bz2
podman-338f0123706f31721e89c2e6223c7c493b577dc7.zip
Remove unused archive flag from diff commands
* Option left in images/diff.go CLI as comment implies it is needed for backwards compatibility. ```release-note NONE ``` [NO NEW TESTS NEEDED] Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/diff.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/podman/images/diff.go b/cmd/podman/images/diff.go
index 13a8f1d9d..a017d569d 100644
--- a/cmd/podman/images/diff.go
+++ b/cmd/podman/images/diff.go
@@ -34,9 +34,7 @@ func init() {
}
func diffFlags(flags *pflag.FlagSet) {
- diffOpts = &entities.DiffOptions{}
- 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.")
+ diffOpts = new(entities.DiffOptions)
formatFlagName := "format"
flags.StringVar(&diffOpts.Format, formatFlagName, "", "Change the output format (json)")