[xiph-cvs] cvs commit: vorbis-tools/vorbiscomment vcomment.c
Michael Smith
msmith at xiph.org
Sat Jan 26 21:34:55 PST 2002
msmith 02/01/26 21:34:54
Modified: vorbiscomment vcomment.c
Log:
Add a --version/-V option to vorbiscomment (someone wanted this, god knows why.)
Revision Changes Path
1.21 +6 -1 vorbis-tools/vorbiscomment/vcomment.c
Index: vcomment.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/vorbiscomment/vcomment.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- vcomment.c 2002/01/27 05:18:49 1.20
+++ vcomment.c 2002/01/27 05:34:54 1.21
@@ -26,6 +26,7 @@
{"write",0,0,'w'},
{"help",0,0,'h'},
{"quiet",0,0,'q'},
+ {"version", 0, 0, 'V'},
{"commentfile",1,0,'c'},
{NULL,0,0,0}
};
@@ -331,7 +332,7 @@
setlocale(LC_ALL, "");
- while ((ret = getopt_long(argc, argv, "alwhqc:t:",
+ while ((ret = getopt_long(argc, argv, "alwhqVc:t:",
long_options, &option_index)) != -1) {
switch (ret) {
case 0:
@@ -347,6 +348,10 @@
case 'a':
param->mode = MODE_APPEND;
break;
+ case 'V':
+ fprintf(stderr, "Vorbiscomment " VERSION "\n");
+ exit(0);
+ break;
case 'h':
usage();
exit(0);
<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