Skip to content

Commit

Permalink
fix: update help doc for blob fetch command (#605)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah authored Sep 22, 2022
1 parent 6fb800b commit 30e0304
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/oras/blob/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type fetchBlobOptions struct {
func fetchCmd() *cobra.Command {
var opts fetchBlobOptions
cmd := &cobra.Command{
Use: "fetch [flags] <name@digest>",
Use: "fetch [flags] {--output <file>|--descriptor} <name>@<digest>",
Short: "[Preview] Fetch a blob from a remote registry",
Long: `[Preview] Fetch a blob from a remote registry
Expand All @@ -59,9 +59,6 @@ Example - Fetch and stdout the descriptor of a blob:
Example - Fetch the blob, save it to a local file and stdout the descriptor:
oras blob fetch --output blob.tar.gz --descriptor localhost:5000/hello@sha256:9a201d228ebd966211f7d1131be19f152be428bd373a92071c71d8deaf83b3e5
Example - Fetch blob from the insecure registry:
oras blob fetch --insecure localhost:5000/hello@sha256:9a201d228ebd966211f7d1131be19f152be428bd373a92071c71d8deaf83b3e5
`,
Args: cobra.ExactArgs(1),
PreRunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 30e0304

Please sign in to comment.