Skip to content

Commit

Permalink
fix: fix flag name parsing error for oras blob push (oras-project#614)
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey Li <[email protected]>
  • Loading branch information
lizMSFT authored and Terry Howe committed Feb 2, 2023
1 parent d3ee96d commit 7967efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/blob/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Example - Push blob without TLS:
}

cmd.Flags().Int64VarP(&opts.size, "size", "", -1, "provide the blob size")
cmd.Flags().StringVarP(&opts.mediaType, "media-type", "", ocispec.MediaTypeImageLayer, "specify the returned media type in the descriptor if `--descriptor` is used")
cmd.Flags().StringVarP(&opts.mediaType, "media-type", "", ocispec.MediaTypeImageLayer, "specify the returned media type in the descriptor if --descriptor is used")
option.ApplyFlags(&opts, cmd.Flags())
return cmd
}
Expand Down

0 comments on commit 7967efe

Please sign in to comment.