diff --git a/cmd/oras/root/pull.go b/cmd/oras/root/pull.go index f2b199110..45eb997be 100644 --- a/cmd/oras/root/pull.go +++ b/cmd/oras/root/pull.go @@ -107,7 +107,7 @@ Example - Pull artifact files from an OCI layout archive 'layout.tar': cmd.Flags().StringVarP(&opts.ManifestConfigRef, "config", "", "", "output manifest config file") cmd.Flags().IntVarP(&opts.concurrency, "concurrency", "", 3, "concurrency level") option.ApplyFlags(&opts, cmd.Flags()) - return cmd + return oerrors.Command(cmd, &opts.Target) } type pullResult struct {