Skip to content

Commit ce04a3e

Browse files
Merge pull request #10711 from mtrmac/format-docs
Fix documentation of the --format option of podman push
2 parents 725b500 + 2bd382c commit ce04a3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/podman/images/push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func pushFlags(cmd *cobra.Command) {
9696
_ = cmd.RegisterFlagCompletionFunc(digestfileFlagName, completion.AutocompleteDefault)
9797

9898
formatFlagName := "format"
99-
flags.StringVarP(&pushOptions.Format, formatFlagName, "f", "", "Manifest type (oci, v2s2, or v2s1) to use when pushing an image using the 'dir' transport (default is manifest type of source)")
99+
flags.StringVarP(&pushOptions.Format, formatFlagName, "f", "", "Manifest type (oci, v2s2, or v2s1) to use in the destination (default is manifest type of source, with fallbacks)")
100100
_ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteManifestFormat)
101101

102102
flags.BoolVarP(&pushOptions.Quiet, "quiet", "q", false, "Suppress output information when pushing images")

pkg/domain/entities/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ type ImagePushOptions struct {
184184
// image to the file. Ignored for remote calls.
185185
DigestFile string
186186
// Format is the Manifest type (oci, v2s1, or v2s2) to use when pushing an
187-
// image using the 'dir' transport. Default is manifest type of source.
187+
// image. Default is manifest type of source, with fallbacks.
188188
// Ignored for remote calls.
189189
Format string
190190
// Quiet can be specified to suppress pull progress when pulling. Ignored

0 commit comments

Comments
 (0)