X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfbytes.c;h=e0862abf05ab8ac37149d09ee5193f735903e2ef;hp=1b80f4143a944cc1c02a0c69adeac7902f5a7b64;hb=f29d8006b1d8253c50808d6eb4941bdeb808c601;hpb=7915fcb341e26520259263042671a42dcfd833fe diff --git a/src/swfbytes.c b/src/swfbytes.c index 1b80f41..e0862ab 100644 --- a/src/swfbytes.c +++ b/src/swfbytes.c @@ -1,5 +1,5 @@ /* swfbytes.c - A tool for modifying swf files + A tool for modifying swfs on the tag level Part of the swftools package. @@ -30,11 +30,11 @@ static char * filename = 0; static int verbose; -struct options_t options[] = -{ - {"v","verbose"}, - {"V","version"}, - {0,0} +static struct options_t options[] = { +{"h", "help"}, +{"v", "verbose"}, +{"V", "version"}, +{0,0} }; int args_callback_option(char*name,char*val) @@ -55,12 +55,16 @@ int args_callback_longoption(char*name,char*val) { return args_long2shortoption(options, name, val); } -void args_callback_usage(char*name) -{ - printf("Usage: %s [-at] file.swf\n", name); - printf("\t-h , --help\t\t Print help and exit\n"); - printf("\t-v , --verbose\t\t Be more verbose\n"); - printf("\t-V , --version\t\t Print program version and exit\n"); +void args_callback_usage(char *name) +{ + printf("\n"); + printf("Usage: %s [-v] file.swf > file.hexdump\n", name); + printf("OR: %s file.hexdump\n", name); + printf("\n"); + printf("-h , --help Print help and exit\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) { @@ -375,4 +379,3 @@ int main (int argc,char ** argv) return 0; } -