Commit 0e92ba7f authored by Michael Smith's avatar Michael Smith
Browse files

-o was broken in previous commit.

svn path=/trunk/vorbis-tools/; revision=3484
parent 23937f07
...@@ -68,7 +68,7 @@ static void parse_options(int argc, char **argv) ...@@ -68,7 +68,7 @@ static void parse_options(int argc, char **argv)
int option_index = 1; int option_index = 1;
int ret; int ret;
while((ret = getopt_long(argc, argv, "Qhvb:e:r:s:", while((ret = getopt_long(argc, argv, "Qhvb:e:r:s:o:",
long_options, &option_index)) != -1) long_options, &option_index)) != -1)
{ {
switch(ret) switch(ret)
...@@ -299,12 +299,6 @@ int main(int argc, char **argv) ...@@ -299,12 +299,6 @@ int main(int argc, char **argv)
return 1; return 1;
} }
if((argc - optind) % 2 != 0) {
fprintf(stderr, "ERROR: Not enough output files specified. See usage (below) for details.\n");
usage();
return 1;
}
if(argc - optind > 1 && outfilename) { if(argc - optind > 1 && outfilename) {
fprintf(stderr, "ERROR: Can only specify one input file if output filename is specified\n"); fprintf(stderr, "ERROR: Can only specify one input file if output filename is specified\n");
return 1; return 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment