]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - cmd/warc-extract/main.go
More correct spelling
[tofuproxy.git] / cmd / warc-extract / main.go
index 0dd56fd8a24cd63e177d3c7e6d493cb1b10e926d..9ebc6419b5fd9f5417f8053ead1138deda53f070 100644 (file)
@@ -1,6 +1,6 @@
 /*
 warc-extract -- WARC files data extractor
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ import (
 func main() {
        uri := flag.String("uri", "", "URI to extract, if specified")
        hdr := flag.Bool("hdr", false, "Also extract WARC's header")
-       idx := flag.Bool("idx", false, "Save WARC indexes")
+       idx := flag.Bool("idx", false, "Save WARC indices")
        recompress := flag.Bool("for-enzstd", false, "Output for enzstd utility")
        flag.Parse()
        log.SetFlags(log.Lshortfile)
@@ -89,7 +89,7 @@ func main() {
                }
                log.Println("added", p, len(warc.WARCs[p]), "URIs")
                if *idx {
-                       if err := warc.SaveIndexes(); err != nil {
+                       if err := warc.SaveIndices(); err != nil {
                                log.Fatalln(err)
                        }
                }