From 70f90612c26002697ea2b21c47dbb253f53cc48d Mon Sep 17 00:00:00 2001 From: Aloxaf Date: Sat, 13 Apr 2024 03:27:55 +0800 Subject: [PATCH] fix: cli: json flag (#11868) --- cli/filplus.go | 5 +++++ documentation/en/cli-lotus.md | 1 + 2 files changed, 6 insertions(+) diff --git a/cli/filplus.go b/cli/filplus.go index 7b876ea3218..717fa0d831b 100644 --- a/cli/filplus.go +++ b/cli/filplus.go @@ -394,6 +394,11 @@ var filplusListClaimsCmd = &cli.Command{ Name: "expired", Usage: "list only expired claims", }, + &cli.BoolFlag{ + Name: "json", + Usage: "output results in json format", + Value: false, + }, }, Action: func(cctx *cli.Context) error { if cctx.NArg() > 1 { diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index 36f1e1059a3..28338393f98 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -1297,6 +1297,7 @@ USAGE: OPTIONS: --expired list only expired claims (default: false) + --json output results in json format (default: false) --help, -h show help ```