about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--searchix.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/searchix.go b/searchix.go
index 59235cd..a369f73 100644
--- a/searchix.go
+++ b/searchix.go
@@ -87,6 +87,9 @@ func main() {
 		if err != nil {
 			log.Fatalf("Failed to build index: %v", err)
 		}
+		if *replace {
+			return
+		}
 	}
 
 	c := make(chan os.Signal, 2)