mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-08-26 02:38:58 +08:00
Add helper function to print usage when wrong number of arguments are supplied
This commit is contained in:
@ -611,7 +611,7 @@ var MpoolConfig = &cli.Command{
|
||||
ArgsUsage: "[new-config]",
|
||||
Action: func(cctx *cli.Context) error {
|
||||
if cctx.NArg() > 1 {
|
||||
return cli.ShowCommandHelp(cctx, cctx.Command.Name)
|
||||
return IncorrectNumArgs(cctx)
|
||||
}
|
||||
|
||||
afmt := NewAppFmt(cctx.App)
|
||||
|
Reference in New Issue
Block a user