summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-07-11 18:25:27 +0200
committerewy <ewy0@protonmail.com>2026-07-11 18:25:27 +0200
commit0a7dc39cc57555b40d8bce860b67e8934c3009e2 (patch)
treeb20b963889f6e7516d8d67411fd9897daf5fa7bf /main.go
parente7d0992be6facf88c7780c5095af208ed9d4289c (diff)
set all flag explicitly
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index f7060bd..ed2404c 100644
--- a/main.go
+++ b/main.go
@@ -210,7 +210,8 @@ func pik() *spool.ExitCode {
}
// TODO: Move auto-all logic into Search?
- if !*flags.All && result.Target == nil && len(result.Args) > 0 && SourcesWithoutResults == nil && !ForceConfirm {
+ if !*flags.All && result.Target == nil && SourcesWithoutResults == nil && !ForceConfirm {
+ _ = pflag.Set("all", "true")
ForceConfirm = true
SourcesWithoutResults = &c
return pik()