* fixed command-line parsing bug.
if ((!isatty(so))&&(!sname)) handle = so;
else
if ((!isatty(so))&&(!sname)) handle = so;
else
- { if (!sname) sname = "out.swf";
+ { if (!sname) sname = "output.swf";
handle = open(sname,O_RDWR|O_CREAT|O_TRUNC,0666);
}
if FAILED(swf_WriteSWF(handle,swf)) if (VERBOSE(1)) fprintf(stderr,"Unable to write output file: %s\n",sname);
handle = open(sname,O_RDWR|O_CREAT|O_TRUNC,0666);
}
if FAILED(swf_WriteSWF(handle,swf)) if (VERBOSE(1)) fprintf(stderr,"Unable to write output file: %s\n",sname);
- { if (VERBOSE(1)) fprintf(stderr,"Unknown option: -v%s\n",arg);
+ { if (VERBOSE(1)) fprintf(stderr,"Unknown option: -%s\n",arg);
+ exit(1);