]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - cmd/warc-extract/main.go
No need to hardcode UnZSTDPath during compilation
[tofuproxy.git] / cmd / warc-extract / main.go
index 7389e069d29d0027d513a62cd955ab5635cec790..d207273e2ee95f8d349ae3ae16607ce2bcf09c07 100644 (file)
@@ -36,8 +36,10 @@ func main() {
        hdr := flag.Bool("hdr", false, "Also extract WARC's header")
        idx := flag.Bool("idx", false, "Save WARC indices")
        recompress := flag.Bool("for-enzstd", false, "Output for enzstd utility")
+       unzstdPath := flag.String("unzstd", "cmd/zstd/unzstd", "Path to unzstd utility")
        flag.Parse()
        log.SetFlags(log.Lshortfile)
+       warc.UnZSTDPath = *unzstdPath
 
        if *recompress {
                var hdr bytes.Buffer