Merge pull request #8189 from filecoin-project/jen/reallydoitflag
fix: sealing: add flag usage
This commit is contained in:
commit
6347daf847
@ -1525,6 +1525,12 @@ var sectorsSnapAbortCmd = &cli.Command{
|
|||||||
Name: "abort-upgrade",
|
Name: "abort-upgrade",
|
||||||
Usage: "Abort the attempted (SnapDeals) upgrade of a CC sector, reverting it to as before",
|
Usage: "Abort the attempted (SnapDeals) upgrade of a CC sector, reverting it to as before",
|
||||||
ArgsUsage: "<sectorNum>",
|
ArgsUsage: "<sectorNum>",
|
||||||
|
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 {
|
Action: func(cctx *cli.Context) error {
|
||||||
if cctx.Args().Len() != 1 {
|
if cctx.Args().Len() != 1 {
|
||||||
return lcli.ShowHelp(cctx, xerrors.Errorf("must pass sector number"))
|
return lcli.ShowHelp(cctx, xerrors.Errorf("must pass sector number"))
|
||||||
|
@ -1757,6 +1757,7 @@ USAGE:
|
|||||||
lotus-miner sectors abort-upgrade [command options] <sectorNum>
|
lotus-miner sectors abort-upgrade [command options] <sectorNum>
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
|
--really-do-it pass this flag if you know what you are doing (default: false)
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user