diff --git a/cmd/pool/auction.go b/cmd/pool/auction.go index 8bff8c7..3cb76c3 100644 --- a/cmd/pool/auction.go +++ b/cmd/pool/auction.go @@ -287,7 +287,15 @@ func ratings(ctx *cli.Context) error { } defer cleanup() - nodeKey := ctx.String("node_key") + var nodeKey string + switch { + case ctx.Args().Present(): + nodeKey = ctx.Args().First() + + default: + nodeKey = ctx.String("node_key") + } + if nodeKey == "" { return fmt.Errorf("an LN node key must be provided") }