Skip to content

Commit

Permalink
fix: make attach required via cobra (oras-project#612)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah authored and Terry Howe committed Feb 2, 2023
1 parent e7ce66d commit d3ee96d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/oras/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Example - Attach a file and add manifest annotations
}

cmd.Flags().StringVarP(&opts.artifactType, "artifact-type", "", "", "artifact type")
cmd.MarkFlagRequired("artifact-type")
option.ApplyFlags(&opts, cmd.Flags())
return cmd
}
Expand Down

0 comments on commit d3ee96d

Please sign in to comment.