Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Apr 2, 2024
1 parent 2efc3e3 commit fe9bab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/oras/internal/option/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ func (is *ImageSpec) String() string {
// ApplyFlags applies flags to a command flag set.
func (is *ImageSpec) ApplyFlags(fs *pflag.FlagSet) {
// default to auto
is.PackVersion = oras.PackManifestVersion1_1
defaultFlag := ImageSpecAuto
is.PackVersion = oras.PackManifestVersion1_1
is.Flag = defaultFlag
fs.Var(is, "image-spec", fmt.Sprintf(`[Experimental] specify manifest type for building artifact. Options: %s (default %q)`, is.Options(), defaultFlag))
}

Expand Down

0 comments on commit fe9bab3

Please sign in to comment.