From 851e890dbb2341af271b4d0558c903a595896a3f 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 91d77ead65c..098636ee0e6 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 d62bce80b24..4e202eda0df 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 ```