diff --git a/cmd/oras/internal/option/packer.go b/cmd/oras/internal/option/packer.go index a427d9b3b..3c599189a 100644 --- a/cmd/oras/internal/option/packer.go +++ b/cmd/oras/internal/option/packer.go @@ -46,6 +46,7 @@ type Packer struct { // ApplyFlags applies flags to a command flag set. func (opts *Packer) ApplyFlags(fs *pflag.FlagSet) { + opts.Annotation.ApplyFlags(fs) fs.StringVarP(&opts.ManifestExportPath, "export-manifest", "", "", "`path` of the pushed manifest") fs.BoolVarP(&opts.PathValidationDisabled, "disable-path-validation", "", false, "skip path validation") }