[xiph-cvs] cvs commit: vorbis-tools/oggdec oggdec.c

Michael Smith msmith at xiph.org
Tue Jul 2 06:57:25 PDT 2002



msmith      02/07/02 06:57:25

  Modified:    oggdec   oggdec.c
  Log:
  fix usage()

Revision  Changes    Path
1.2       +2 -2      vorbis-tools/oggdec/oggdec.c

Index: oggdec.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggdec/oggdec.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- oggdec.c	2002/07/02 13:38:42	1.1
+++ oggdec.c	2002/07/02 13:57:25	1.2
@@ -36,7 +36,7 @@
 unsigned char headbuf[44]; /* The whole buffer */
 
 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"
                     "Supported flags:\n"
                     " --quiet, -q      Quiet mode. No console output.\n"
@@ -288,7 +288,7 @@
     }
 
     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();
         return 1;
     }

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list