From c5dc898ed064b61efa4373c8a3603fd400608dd4 Mon Sep 17 00:00:00 2001 From: Rjan Date: Thu, 3 Mar 2022 15:40:16 +0100 Subject: [PATCH] fix: cli: add ArgsUsage field to clientGetDealCmd Adds [proposalCID] as ArgsUsage field in the 'lotus client get-deal' command. Fixes #8133 --- cli/client.go | 5 +++-- documentation/en/cli-lotus.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/client.go b/cli/client.go index da725a7be6..ead520a48d 100644 --- a/cli/client.go +++ b/cli/client.go @@ -1913,8 +1913,9 @@ type deal struct { } var clientGetDealCmd = &cli.Command{ - Name: "get-deal", - Usage: "Print detailed deal information", + Name: "get-deal", + Usage: "Print detailed deal information", + ArgsUsage: "[proposalCID]", Action: func(cctx *cli.Context) error { if !cctx.Args().Present() { return cli.ShowCommandHelp(cctx, cctx.Command.Name) diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index b5bd8c4d3c..f9dedf74a8 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -776,7 +776,7 @@ NAME: lotus client get-deal - Print detailed deal information USAGE: - lotus client get-deal [command options] [arguments...] + lotus client get-deal [command options] [proposalCID] CATEGORY: STORAGE