#include <stdio.h>\r
#include <fcntl.h>\r
#include "../lib/rfxswf.h"\r
-#include "args.h"\r
+#include "../lib/args.h"\r
\r
char * filename = 0;\r
\r
once */\r
char idtab[65536];\r
\r
+struct options_t options[] =\r
+{\r
+ {"v","verbose"},\r
+ {"V","version"},\r
+ {0,0}\r
+};\r
+\r
+\r
int args_callback_option(char*name,char*val)\r
{\r
+ if(!strcmp(name, "V")) {\r
+ printf("swfdump - part of %s %s\n", PACKAGE, VERSION);\r
+ }\r
}\r
int args_callback_longoption(char*name,char*val)\r
{\r
+ return args_long2shortoption(options, name, val);\r
}\r
void args_callback_usage(char*name)\r
{ \r
printf("Usage: %s file.swf\n", name);\r
- printf("\n");\r
}\r
int args_callback_command(char*name,char*val)\r
{\r