Commit 91827962 authored by Michael Smith's avatar Michael Smith
Browse files

fix usage()

svn path=/trunk/vorbis-tools/; revision=3475
parent 0f1fa926
...@@ -36,7 +36,7 @@ static int sign = 1; ...@@ -36,7 +36,7 @@ static int sign = 1;
unsigned char headbuf[44]; /* The whole buffer */ unsigned char headbuf[44]; /* The whole buffer */
static void usage(void) { static void usage(void) {
fprintf(stderr, "Usage: oggdec [flags] file1.ogg [file2.ogg ... fileN.ogg]\n" fprintf(stderr, "Usage: oggdec [flags] file1.ogg file1.wav [file2.ogg file2.wav ... fileN.ogg fileN.ogg]\n"
"\n" "\n"
"Supported flags:\n" "Supported flags:\n"
" --quiet, -q Quiet mode. No console output.\n" " --quiet, -q Quiet mode. No console output.\n"
...@@ -288,7 +288,7 @@ int main(int argc, char **argv) ...@@ -288,7 +288,7 @@ int main(int argc, char **argv)
} }
if((argc - optind) % 2 != 0) { if((argc - optind) % 2 != 0) {
fprintf(stderr, "ERROR: incorrect usage. Usage message follows\n"); fprintf(stderr, "ERROR: Not enough output files specified. See usage (below) for details.\n");
usage(); usage();
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