Add helper function to print usage when wrong number of arguments are supplied
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ var sendCmd = &cli.Command{
|
||||
}
|
||||
|
||||
if cctx.NArg() != 2 {
|
||||
return ShowHelp(cctx, fmt.Errorf("'send' expects two arguments, target and amount"))
|
||||
return IncorrectNumArgs(cctx)
|
||||
}
|
||||
|
||||
srv, err := GetFullNodeServices(cctx)
|
||||
|
||||
Reference in New Issue
Block a user