Add error when privateKey is not specificed

pull/69/head
Rongjian Lan 6 years ago
parent 8888e9ea64
commit 0f6d2938d3
  1. 4
      client/wallet/main.go

@ -75,6 +75,10 @@ func main() {
case "import":
accountImportCommand.Parse(os.Args[3:])
priKey := *accountImportPtr
if priKey == "" {
fmt.Println("Error: --privateKey is required")
return
}
if !accountImportCommand.Parsed() {
fmt.Println("Failed to parse flags")
}

Loading…
Cancel
Save