X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfbbox.c;h=5fb1dbafd57fb9a400e1b396eabd203757ac6520;hp=de0d96c554bbb49a19c3c5782fd2b110ac7473b6;hb=6f3e9add89a0157ef6552bc154475b43b371e615;hpb=7133cc0e1e4d1be5d8a04b39e75ab6cd1b3ee3a0 diff --git a/src/swfbbox.c b/src/swfbbox.c index de0d96c..5fb1dba 100644 --- a/src/swfbbox.c +++ b/src/swfbbox.c @@ -35,14 +35,14 @@ static int optimize = 0; static int swifty = 0; static int verbose = 0; -struct options_t options[] = -{ - {"V","version"}, - {"O","optimize"}, - {"o","output"}, - {"S","swifty"}, - {"v","verbose"}, - {0,0} +static struct options_t options[] = { +{"h", "help"}, +{"O", "optimize"}, +{"S", "swifty"}, +{"o", "output"}, +{"v", "verbose"}, +{"V", "version"}, +{0,0} }; int args_callback_option(char*name,char*val) @@ -78,15 +78,18 @@ int args_callback_longoption(char*name,char*val) { return args_long2shortoption(options, name, val); } -void args_callback_usage(char*name) -{ +void args_callback_usage(char *name) +{ + printf("\n"); printf("Usage: %s [-OS] file.swf\n", name); - printf("\t-h , --help\t\t Print help and exit\n"); - printf("\t-O , --optimize\t\t Recalculate bounding boxes\n"); - printf("\t-S , --swifty\t\t Print out transformed bounding boxes\n"); - printf("\t-o , --output\t\t Set output filename (for -O)\n"); - printf("\t-v , --verbose\t\t Be more verbose\n"); - printf("\t-V , --version\t\t Print program version and exit\n"); + printf("\n"); + printf("-h , --help Print help and exit\n"); + printf("-O , --optimize Recalculate bounding boxes\n"); + printf("-S , --swifty Print out transformed bounding boxes\n"); + printf("-o , --output Set output filename to (for -O)\n"); + printf("-v , --verbose Be more verbose\n"); + printf("-V , --version Print program version and exit\n"); + printf("\n"); } int args_callback_command(char*name,char*val) {