Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
  • Loading branch information
wangxiaoxuan273 committed Apr 18, 2024
1 parent 7c70aeb commit 03b3c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oras/root/manifest/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ Example - Fetch raw manifest from an OCI layout archive file 'layout.tar':
case opts.OutputDescriptor && opts.outputPath == "-":
return fmt.Errorf("`--descriptor` cannot be used with `--output -` at the same time")
}
if err := oerrors.CheckMutuallyExclusiveFlags(cmd.Flags(), []string{"format", "pretty"}); err != nil {
if err := oerrors.CheckMutuallyExclusiveFlags(cmd.Flags(), "format", "pretty"); err != nil {
return err
}
if err := oerrors.CheckMutuallyExclusiveFlags(cmd.Flags(), []string{"format", "descriptor"}); err != nil {
if err := oerrors.CheckMutuallyExclusiveFlags(cmd.Flags(), "format", "descriptor"); err != nil {
return err
}
opts.RawReference = args[0]
Expand Down

0 comments on commit 03b3c9d

Please sign in to comment.