add flag usage

This commit is contained in:
jennijuju 2022-02-25 10:28:47 -05:00
parent 64b13afee5
commit 52756128da

View File

@ -1535,6 +1535,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"))