diff options
author | Alan Pearce | 2025-03-24 14:26:19 +0100 |
---|---|---|
committer | Alan Pearce | 2025-03-24 14:26:19 +0100 |
commit | a9ce8ee955b7e8e7b415fe60502c793e73887da0 (patch) | |
tree | 31f6285c200f874ddc273f9e23819cf87f99aa3c /cmd | |
parent | 523d9dcd4cc2932e5fd4df80cd0cff0d0ca43c38 (diff) | |
download | searchix-a9ce8ee955b7e8e7b415fe60502c793e73887da0.tar.lz searchix-a9ce8ee955b7e8e7b415fe60502c793e73887da0.tar.zst searchix-a9ce8ee955b7e8e7b415fe60502c793e73887da0.zip |
refactor: remove duplicate update flag
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/searchix-web/main.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go index c70b4d3..8e8a4c5 100644 --- a/cmd/searchix-web/main.go +++ b/cmd/searchix-web/main.go @@ -28,7 +28,6 @@ var ( ) dev = flag.Bool("dev", false, "enable live reloading and nicer logging") replace = flag.Bool("replace", false, "replace existing index and exit") - update = flag.Bool("update", false, "update index and exit") version = flag.Bool("version", false, "print version information") cpuprofile = flag.String("cpuprofile", "", "enable CPU profiling and save to `file`") ) @@ -98,7 +97,7 @@ func main() { logger.Fatal("Failed to create importer", "error", err) } - if !exists || *replace || *update { + if !exists || *replace { err := imp.Start(ctx, true, nil) if err != nil { logger.Fatal("Failed to start importer", "error", err) |