commit 03567e725a0504ac422d7009702d39348ca8c0a0
parent 54fd3e0fe3370306686c021373f76c0c84c8af97
Author: William Casarin <jb55@jb55.com>
Date: Thu, 11 Aug 2022 12:19:01 -0700
fix readme examples
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
@@ -24,7 +24,7 @@ A cli util for creating nostr events
Generate an event:
- $ ./nostril --sec <key> "this is a message"
+ $ ./nostril --sec <key> --content "this is a message"
{
"id": "b5c18a4aa21231a77b09748a5e623d9c2f853aed09653934b80a10b66a7225fa",
"pubkey": "fd3fdb0d0d8d6f9a7667b53211de8ae3c5246b79bdaf64ebac849d5148b5615f",
@@ -37,7 +37,7 @@ Generate an event:
Wrap event to send to a relay:
- $ ./nostril --envelope --sec <key> "hello"
+ $ ./nostril --envelope --sec <key> --content "hello"
[
"EVENT",
{
@@ -53,9 +53,9 @@ Wrap event to send to a relay:
Send to a relay:
- $ ./nostril --envelope --sec <key> "this is a message" | websocat wss://nostr-pub.wellorder.net
+ $ ./nostril --envelope --sec <key> --content "this is a message" | websocat wss://nostr-pub.wellorder.net
Send a nip04 DM:
- $ ./nostril --envelope --dm <pubkey> --sec <key> "this is a secret" | websocat wss://nostr-pub.wellorder.net
+ $ ./nostril --envelope --dm <pubkey> --sec <key> --content "this is a secret" | websocat wss://nostr-pub.wellorder.net