From 79562a7175cd3792d822bf452cab382603d6d813 Mon Sep 17 00:00:00 2001 From: jennijuju Date: Fri, 25 Feb 2022 10:28:47 -0500 Subject: [PATCH 1/2] add flag usage --- cmd/lotus-miner/sectors.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/lotus-miner/sectors.go b/cmd/lotus-miner/sectors.go index a5ab14c82..11fe1c354 100644 --- a/cmd/lotus-miner/sectors.go +++ b/cmd/lotus-miner/sectors.go @@ -1525,6 +1525,12 @@ var sectorsSnapAbortCmd = &cli.Command{ Name: "abort-upgrade", Usage: "Abort the attempted (SnapDeals) upgrade of a CC sector, reverting it to as before", ArgsUsage: "", + Flags: []cli.Flag{ + &cli.BoolFlag{ + Name: "really-do-it", + Usage: "pass this flag if you know what you are doing", + }, + }, Action: func(cctx *cli.Context) error { if cctx.Args().Len() != 1 { return lcli.ShowHelp(cctx, xerrors.Errorf("must pass sector number")) From 433f9f8a13a1113e2077bdb9282c98e129f49084 Mon Sep 17 00:00:00 2001 From: jennijuju Date: Fri, 25 Feb 2022 10:48:08 -0500 Subject: [PATCH 2/2] make gen --- documentation/en/cli-lotus-miner.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/en/cli-lotus-miner.md b/documentation/en/cli-lotus-miner.md index bb9589401..b842d0ac3 100644 --- a/documentation/en/cli-lotus-miner.md +++ b/documentation/en/cli-lotus-miner.md @@ -1757,7 +1757,8 @@ USAGE: lotus-miner sectors abort-upgrade [command options] OPTIONS: - --help, -h show help (default: false) + --really-do-it pass this flag if you know what you are doing (default: false) + --help, -h show help (default: false) ```