Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Apr 1, 2024
1 parent 6614c92 commit eb5f62d
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 @@ -79,8 +79,8 @@ Example - Fetch raw manifest from an OCI layout archive file 'layout.tar':
return fmt.Errorf("`--output -` cannot be used with `--format` at the same time")
case opts.OutputDescriptor && opts.Template != "":
return fmt.Errorf("`--descriptor` cannot be used with `--format` at the same time")
case opts.OutputDescriptor && opts.outputPath != "":
return fmt.Errorf("`--descriptor` cannot be used with `--output` at the same time")
case opts.OutputDescriptor && opts.outputPath == "-":
return fmt.Errorf("`--descriptor` cannot be used with `--output -` at the same time")
}
opts.RawReference = args[0]
return option.Parse(cmd, &opts)
Expand Down

0 comments on commit eb5f62d

Please sign in to comment.