]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
updated program name print statement 787/head
authorPaul Cruz <paulcruz74@fb.com>
Thu, 10 Aug 2017 23:11:59 +0000 (16:11 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Thu, 10 Aug 2017 23:11:59 +0000 (16:11 -0700)
contrib/adaptive-compression/adapt.c

index b5c15814517fbfee8c8848310581c9429adc2d59..e449e2a5f8e2251d0b66b0c9c4621e0d8c51c060 100644 (file)
@@ -1015,10 +1015,10 @@ static unsigned readU32FromChar(const char** stringPtr)
     return result;
 }
 
-static void help(void)
+static void help(const char* progPath)
 {
     PRINT("Usage:\n");
-    PRINT("  zstd-adaptive [options] [file(s)]\n");
+    PRINT("  %s [options] [file(s)]\n", progPath);
     PRINT("\n");
     PRINT("Options:\n");
     PRINT("  -oFILE : specify the output file name\n");
@@ -1067,7 +1067,7 @@ int main(int argCount, const char* argv[])
                     providedInitialCLevel = 1;
                     break;
                 case 'h':
-                    help();
+                    help(argv[0]);
                     goto _main_exit;
                 case 'p':
                     g_useProgressBar = 0;