about summary refs log tree commit diff stats
path: root/cmd/searchix-web/main.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-29 10:55:32 +0200
committerAlan Pearce2024-05-29 10:55:32 +0200
commit97021f769a0f06103b4af5019d942759d644e291 (patch)
tree4ad013f510d5e7316cddebd761189de68506d0d1 /cmd/searchix-web/main.go
parenta5e3c144034eab0cb41c4b65557e5c30e877c9fb (diff)
downloadsearchix-97021f769a0f06103b4af5019d942759d644e291.tar.lz
searchix-97021f769a0f06103b4af5019d942759d644e291.tar.zst
searchix-97021f769a0f06103b4af5019d942759d644e291.zip
fix: incorrect (switched) behaviour of --update/--replace
Diffstat (limited to 'cmd/searchix-web/main.go')
-rw-r--r--cmd/searchix-web/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go
index 04c32c2..1eef5c3 100644
--- a/cmd/searchix-web/main.go
+++ b/cmd/searchix-web/main.go
@@ -53,7 +53,7 @@ func main() {
 		log.Fatalf("Failed to initialise searchix: %v", err)
 	}
 
-	err = s.SetupIndex(*replace, *update)
+	err = s.SetupIndex(*update, *replace)
 	if err != nil {
 		log.Fatalf("Failed to setup index: %v", err)
 	}