fixed options and help display (patch from winfried)
[openjpeg.git] / mj2 / wrap_j2k_in_mj2.c
index 340a5c6585870973e3f34dfdde326484c5bb2158..77b495981df923733e22d578be255f4ee9979425 100644 (file)
@@ -241,8 +241,8 @@ int main(int argc, char *argv[]) {
        mj2_cparameters_t parameters;
        
   if (argc != 3) {
-    printf("Bad syntax: Usage: MJ2_Wrapper source_location mj2_filename\n");
-    printf("Example: MJ2_Wrapper input/input output.mj2\n");
+    printf("Usage: %s source_location mj2_filename\n",argv[0]);
+    printf("Example: %s input/input output.mj2\n",argv[0]);
     return 1;
   }