update realdoit to force
This commit is contained in:
parent
a7a6f24ceb
commit
dbe580de10
@ -63,7 +63,7 @@ var sendCmd = &cli.Command{
|
|||||||
Usage: "specify invocation parameters in hex",
|
Usage: "specify invocation parameters in hex",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "really-do-it",
|
Name: "force",
|
||||||
Usage: "must be specified for the action to take effect if maybe SysErrInsufficientFunds etc",
|
Usage: "must be specified for the action to take effect if maybe SysErrInsufficientFunds etc",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -157,8 +157,8 @@ var sendCmd = &cli.Command{
|
|||||||
|
|
||||||
if fromBalance.LessThan(totalCost) {
|
if fromBalance.LessThan(totalCost) {
|
||||||
fmt.Printf("From balance %s attoFIL less than total cost %s attoFIL\n", fromBalance, totalCost)
|
fmt.Printf("From balance %s attoFIL less than total cost %s attoFIL\n", fromBalance, totalCost)
|
||||||
if !cctx.Bool("really-do-it") {
|
if !cctx.Bool("force") {
|
||||||
return fmt.Errorf("--really-do-it must be specified for this action to have an effect; " +
|
return fmt.Errorf("--force must be specified for this action to have an effect; " +
|
||||||
"you have been warned")
|
"you have been warned")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user