nostril

A C cli tool for creating nostr events
git clone git://jb55.com/nostril
Log | Files | Refs | Submodules | README | LICENSE

commit 077b143614111a840666156655fb67fc5b225d6d
parent 9199027424a85c383ad6827c73f2e2b353154ca9
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 13 Feb 2024 15:38:53 -0800

query: add search param

Diffstat:
Mnostril-query | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/nostril-query b/nostril-query @@ -12,6 +12,7 @@ parser.add_argument('-d', '--parameter') parser.add_argument('-t', '--hashtag') parser.add_argument('-i', '--ids') parser.add_argument('-k', '--kinds') +parser.add_argument('-s', '--search') parser.add_argument('-g', '--generic', nargs=2, @@ -40,6 +41,9 @@ if args.generic: (tag, val) = args.generic filt["#" + tag] = val.split(",") +if args.search: + filt["search"] = args.search + if args.hashtag is not None: filt["#t"] = args.hashtag.split(",")