fix: cli: json flag (#11868)

This commit is contained in:
Aloxaf 2024-04-13 03:27:55 +08:00 committed by GitHub
parent 3931710c72
commit 70f90612c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -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 {

View File

@ -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
```