Add helper function to print usage when wrong number of arguments are supplied

This commit is contained in:
Geoff Stuart
2022-09-14 15:38:15 -04:00
parent 3ca9b1e331
commit 4f75e2041c
39 changed files with 108 additions and 102 deletions
+1 -1
View File
@@ -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)