[xiph-commits] r3629 - liboggz/trunk/src/tools
conrad at svn.annodex.net
conrad at svn.annodex.net
Tue Jul 8 08:50:22 PDT 2008
Author: conrad
Date: 2008-07-08 08:50:21 -0700 (Tue, 08 Jul 2008)
New Revision: 3629
Modified:
liboggz/trunk/src/tools/oggz.c
Log:
add -v | --version command to oggz
Modified: liboggz/trunk/src/tools/oggz.c
===================================================================
--- liboggz/trunk/src/tools/oggz.c 2008-07-08 15:37:47 UTC (rev 3628)
+++ liboggz/trunk/src/tools/oggz.c 2008-07-08 15:50:21 UTC (rev 3629)
@@ -43,7 +43,7 @@
int
usage (char * progname)
{
- printf ("Usage: oggz [--help] COMMAND [ARGS]\n\n");
+ printf ("Usage: oggz [ -v | --version ] [ --help | -h ] COMMAND [ ARGS ]\n\n");
printf ("The most commonly used oggz commands are:\n\n");
@@ -85,7 +85,9 @@
if (argc < 2) {
usage (progname);
} else {
- if (!strncmp (argv[1], "help", 4) || !strncmp(argv[1], "--help", 6)) {
+ if (!strncmp (argv[1], "-v", 2) || !strncmp(argv[1], "version", 7) || !strncmp(argv[1], "--version", 9)) {
+ printf ("oggz version " VERSION "\n");
+ } else if (!strncmp(argv[1], "-h", 2) || !strncmp (argv[1], "help", 4) || !strncmp(argv[1], "--help", 6)) {
if (argc == 2) {
usage (progname);
} else {
More information about the commits
mailing list