X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjpeg2swf.c;h=88688aa95adb57d7ff3ef7ee8d73ce9b5d6f01a7;hb=9dd3c056922a1f370c0543c43adae040723bc454;hp=3263cb212e13fa0d7baee946c48933d7372a0723;hpb=2461474cd35510d9bc3ad9056ddd23e20a46b731;p=swftools.git diff --git a/src/jpeg2swf.c b/src/jpeg2swf.c index 3263cb2..88688aa 100644 --- a/src/jpeg2swf.c +++ b/src/jpeg2swf.c @@ -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 vertically offset images by \n"); printf("-X , --width Force movie width to (default: autodetect)\n"); printf("-Y , --height Force movie height to (default: autodetect)\n"); - printf("-f , --fit-to-movie Fit images to movie size\n"); - printf("-e , --export Make importable as asset with \n"); printf("-v , --verbose Set verbose level to (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 Make importable as asset with \n"); printf("\n"); }