mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
cmd/devp2p: fix arg check error
This commit is contained in:
parent
ad4fb2c729
commit
e1a0c4fbda
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ func keyToRecord(ctx *cli.Context) error {
|
|||
}
|
||||
|
||||
func makeRecord(ctx *cli.Context) (*enode.Node, error) {
|
||||
if ctx.NArg() != 1 {
|
||||
if ctx.NArg() < 1 {
|
||||
return nil, errors.New("need key file as argument")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue