From 36e14b196373097b6ad813db6b500f83f43384a9 Mon Sep 17 00:00:00 2001 From: Paul Cruz Date: Tue, 20 Jun 2017 10:34:34 -0700 Subject: [PATCH] added description to advanced usage, changed to use-dict --- tests/decodecorpus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index 8c048f47..0e6630cd 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -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 {