Skip to content

Commit

Permalink
CLI: Properly support --name parameter on add attachment (#953)
Browse files Browse the repository at this point in the history
Previously this parameter did not function. Not sure if it never
functioned or if we lost the support at some point.
  • Loading branch information
wkalt authored Aug 25, 2023
1 parent 467c45b commit ae272c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cli/mcap/cmd/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ var addAttachmentCmd = &cobra.Command{
{
LogTime: logTime,
CreateTime: createTime,
Name: addAttachmentFilename,
Name: utils.DefaultString(addAttachmentName, addAttachmentFilename),
MediaType: addAttachmentMediaType,
DataSize: uint64(contentLength),
Data: attachment,
Expand Down

0 comments on commit ae272c1

Please sign in to comment.