diff --git a/cli/client.go b/cli/client.go index c91d61e21..4025b9b56 100644 --- a/cli/client.go +++ b/cli/client.go @@ -1044,7 +1044,7 @@ var clientQueryRetrievalAskCmd = &cli.Command{ Action: func(cctx *cli.Context) error { afmt := NewAppFmt(cctx.App) if cctx.NArg() != 2 { - afmt.Println("Usage: query-retrieval-ask [minerAddress] [data CID]") + afmt.Println("Usage: retrieval-ask [minerAddress] [data CID]") return nil } diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index 64b378df3..606921f87 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -424,13 +424,13 @@ COMMANDS: local List locally imported data stat Print information about a locally stored file (piece size, etc) RETRIEVAL: - find Find data in the network - query-retrieval-ask Get a miner's retrieval ask - retrieve Retrieve data from network - cat Show data from network - ls List object links - cancel-retrieval Cancel a retrieval deal by deal ID; this also cancels the associated transfer - list-retrievals List retrieval market deals + find Find data in the network + retrieval-ask Get a miner's retrieval ask + retrieve Retrieve data from network + cat Show data from network + ls List object links + cancel-retrieval Cancel a retrieval deal by deal ID; this also cancels the associated transfer + list-retrievals List retrieval market deals STORAGE: deal Initialize storage deal with a miner query-ask Find a miners ask @@ -536,13 +536,13 @@ OPTIONS: ``` -### lotus client query-retrieval-ask +### lotus client retrieval-ask ``` NAME: - lotus client query-retrieval-ask - Get a miner's retrieval ask + lotus client retrieval-ask - Get a miner's retrieval ask USAGE: - lotus client query-retrieval-ask [command options] [minerAddress] [data CID] + lotus client retrieval-ask [command options] [minerAddress] [data CID] CATEGORY: RETRIEVAL diff --git a/itests/kit/client.go b/itests/kit/client.go index 5ca0ae4fe..4c20e37c1 100644 --- a/itests/kit/client.go +++ b/itests/kit/client.go @@ -101,8 +101,8 @@ func RunClientTest(t *testing.T, cmds []*lcli.Command, clientNode *TestFullNode) time.Sleep(time.Second) } - // client query-retrieval-ask --size=1 - out = clientCLI.RunCmd("client", "query-retrieval-ask", "--size=1", minerAddr.String(), dataCid.String()) + // client retrieval-ask --size=1 + out = clientCLI.RunCmd("client", "retrieval-ask", "--size=1", minerAddr.String(), dataCid.String()) require.Regexp(t, regexp.MustCompile("Ask:"), out) fmt.Println("retrieval ask:\n", out)