From 77103cae0cb26b699a427ded66dc3615c56e811d Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 17 Jan 2024 08:50:59 -0300 Subject: [PATCH] req: -d flag too. --- req.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/req.go b/req.go index eda6c08..878fa7d 100644 --- a/req.go +++ b/req.go @@ -62,6 +62,11 @@ example: Usage: "shortcut for --tag p=", Category: CATEGORY_FILTER_ATTRIBUTES, }, + &cli.StringSliceFlag{ + Name: "d", + Usage: "shortcut for --tag d=", + Category: CATEGORY_FILTER_ATTRIBUTES, + }, &cli.StringFlag{ Name: "since", Aliases: []string{"s"}, @@ -179,6 +184,9 @@ example: for _, ptag := range c.StringSlice("p") { tags = append(tags, []string{"p", ptag}) } + for _, dtag := range c.StringSlice("d") { + tags = append(tags, []string{"d", dtag}) + } if len(tags) > 0 && filter.Tags == nil { filter.Tags = make(nostr.TagMap)