]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added description to advanced usage, changed to use-dict
authorPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 17:34:34 +0000 (10:34 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 17:34:34 +0000 (10:34 -0700)
tests/decodecorpus.c

index 8c048f478a09e15594484b03563e28b5e0893d37..0e6630cd1727e60b6c2399eef070073702a26eae 100644 (file)
@@ -1592,6 +1592,7 @@ static void advancedUsage(const char* programName)
     DISPLAY( "\n");
     DISPLAY( "Advanced arguments :\n");
     DISPLAY( " --content-size    : always include the content size in the frame header\n");
+    DISPLAY( " --use-dict #      : include a dictionary used to decompress the corpus\n");
 }
 
 int main(int argc, char** argv)
@@ -1665,8 +1666,8 @@ int main(int argc, char** argv)
                     argument++;
                     if (strcmp(argument, "content-size") == 0) {
                         opts.contentSize = 1;
-                    } else if (strcmp(argument, "train-dict") == 0) {
-                        argument += 11;
+                    } else if (strcmp(argument, "use-dict") == 0) {
+                        argument += 9;
                         dictSize = readInt(&argument);
                         useDict = 1;
                     } else {