removed % handling
[swftools.git] / src / jpeg2swf.c
index 3263cb2..88688aa 100644 (file)
@@ -406,11 +406,17 @@ int args_callback_option(char *arg, char *val)
            break;
 
        case 'v':
-           if (val)
-               global.verbose = atoi(val);
-           res = 1;
+           global.verbose++;
+           res = 0;
            break;
 
+/*     case 'q':
+           global.verbose--;
+           if(global.verbose<0)
+               global.verbose = 0;
+           res = 0;
+           break;*/
+
        case 'X':
            if (val)
                global.force_width = atoi(val);
@@ -481,14 +487,14 @@ static struct options_t options[] = {
 {"q", "quality"},
 {"r", "rate"},
 {"z", "zlib"},
-{"X", "width"},
-{"Y", "height"},
 {"x", "xoffset"},
 {"y", "yoffset"},
-{"e", "export"},
-{"f", "fit-to-movie"},
+{"X", "width"},
+{"Y", "height"},
 {"v", "verbose"},
 {"V", "version"},
+{"f", "fit-to-movie"},
+{"e", "export"},
 {0,0}
 };
 
@@ -532,10 +538,10 @@ void args_callback_usage(char *name)
     printf("-y , --yoffset <offset>        vertically offset images by <offset>\n");
     printf("-X , --width <width>           Force movie width to <width> (default: autodetect)\n");
     printf("-Y , --height <height>         Force movie height to <height> (default: autodetect)\n");
-    printf("-f , --fit-to-movie            Fit images to movie size\n");
-    printf("-e , --export <assetname>      Make importable as asset with <assetname>\n");
     printf("-v , --verbose <level>         Set verbose level to <level> (0=quiet, 1=default, 2=debug)\n");
     printf("-V , --version                 Print version information and exit\n");
+    printf("-f , --fit-to-movie            Fit images to movie size\n");
+    printf("-e , --export <assetname>          Make importable as asset with <assetname>\n");
     printf("\n");
 }