From 347a82eaa924d191c7448e9e204a11eea5bcee80 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 12 Feb 2024 15:38:43 -0300 Subject: [PATCH] verify: accept event to be verified as json argument. --- verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify.go b/verify.go index f5f174b..6b820d3 100644 --- a/verify.go +++ b/verify.go @@ -15,7 +15,7 @@ var verify = &cli.Command{ it outputs nothing if the verification is successful.`, Action: func(c *cli.Context) error { - for stdinEvent := range getStdinLinesOrBlank() { + for stdinEvent := range getStdinLinesOrFirstArgument(c.Args().First()) { evt := nostr.Event{} if stdinEvent != "" { if err := json.Unmarshal([]byte(stdinEvent), &evt); err != nil {