From fb25a2bb43d2a97f93b2ff86ccabf2835f52cfb4 Mon Sep 17 00:00:00 2001 From: bth Date: Tue, 20 Jan 2026 14:51:51 -0800 Subject: [PATCH] tag : use IsSet --- tag/tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tag/tag.go b/tag/tag.go index a1d1910..346940f 100644 --- a/tag/tag.go +++ b/tag/tag.go @@ -57,14 +57,14 @@ func Tag(args []string) { entries := entriesGlobOrStdin() // we shrink the entries list immediately if we want a date range: - if opts.Date.Val != "" { + if opts.Date.IsSet() { entries = dateRange(entries, opts.Date.Val) } tagmap := makeTagmap(entries) // processQueries must precede invert because we want invert to respect combined tags: files := processQueries(tagmap, queries) - if opts.Invert.Val { + if opts.Invert.IsSet() { files = invert(entries, files) } // NOTE: the full makeAdjacencies map may one day be useful on its own