From 410ecb4bbcef8035e2a0f3de6bc8d9eaa58911a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 29 Nov 2021 21:37:28 +0100 Subject: [PATCH] retrieval: --car-export-merkle-proof flag for client retrieve --- cli/client_retr.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cli/client_retr.go b/cli/client_retr.go index e3440d412..17df18a55 100644 --- a/cli/client_retr.go +++ b/cli/client_retr.go @@ -273,13 +273,17 @@ Examples: Flags: append([]cli.Flag{ &cli.BoolFlag{ Name: "car", - Usage: "export to a car file instead of a regular file", + Usage: "Export to a car file instead of a regular file", }, &cli.StringFlag{ Name: "data-selector", - Aliases: []string{"data-selector-selector"}, + Aliases: []string{"datamodel-path-selector"}, Usage: "IPLD datamodel text-path selector, or IPLD json selector", }, + &cli.BoolFlag{ + Name: "car-export-merkle-proof", + Usage: "(requires --data-selector and --car) Export data-selector merkle proof", + }, }, retrFlagsCommon...), Action: func(cctx *cli.Context) error { if cctx.NArg() != 2 { @@ -305,7 +309,7 @@ Examples: } if s != nil { - eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s}) + eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s, ExportMerkleProof: cctx.Bool("car-export-merkle-proof")}) } err = fapi.ClientExport(ctx, *eref, lapi.FileRef{