From 131d2677b63ff260ae8976c1d90368e7846c6b8b Mon Sep 17 00:00:00 2001 From: Andras Belicza Date: Mon, 21 Feb 2022 09:32:42 +0100 Subject: [PATCH] Improve docs and texts --- cmd/screp/screp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/screp/screp.go b/cmd/screp/screp.go index 0281d59..e5f0b5c 100644 --- a/cmd/screp/screp.go +++ b/cmd/screp/screp.go @@ -1,6 +1,6 @@ /* -Package main is a simple CLI app to parse and display information about +A simple CLI app to parse and display information about a StarCraft: Brood War replay passed as a CLI argument. */ @@ -50,7 +50,7 @@ var ( mapResLoc = flag.Bool("mapres", false, "print map data resource locations (minerals and geysers); valid with 'map'") cmds = flag.Bool("cmds", false, "print player commands") computed = flag.Bool("computed", true, "print computed / derived data") - mapDataHash = flag.String("mapDataHash", "", "calculate and print the hash of map data section using the given algorithm;\n"+validMapDataHashes) + mapDataHash = flag.String("mapDataHash", "", "calculate and print the hash of map data section too using the given algorithm;\n"+validMapDataHashes) dumpMapData = flag.Bool("dumpMapData", false, "dump the raw map data (CHK) instead of JSON replay info\nuse it with the 'outfile' flag") outFile = flag.String("outfile", "", "optional output file name") @@ -138,7 +138,7 @@ func main() { if mapDataHasher != nil { mapDataHasher.Write(r.MapData.Debug.Data) - custom["mapDataHash"] = hex.EncodeToString(mapDataHasher.Sum(nil)) + custom["MapDataHash"] = hex.EncodeToString(mapDataHasher.Sum(nil)) } // Zero values in replay the user do not wish to see: