ref: 55eac3d67253ecee92aaa37478d91e8ad9bb5de6
parent: 46ef81baee3550cbcad48e66e9771d02b31557ac
author: Ralph Giles <[email protected]>
date: Fri Aug 31 18:55:41 EDT 2012
Use -V for --version in all utilities. Capital -V is a common short option for printing the program version string as it frees lowercase -v for --verbose. This makes opusenc and opusdec use -V and match opusinfo and oggenc. Also updates the manpages, including mentioning -V for opusinfo.
--- a/man/opusdec.1
+++ b/man/opusdec.1
@@ -1,7 +1,7 @@
.\" Process this file with
.\" groff -man -Tascii opusdec.1
.\"
-.TH opusdec 1 2012-05-28 "Xiph.Org Foundation" "opus-tools"
+.TH opusdec 1 2012-08-31 "Xiph.Org Foundation" "opus-tools"
.SH NAME
opusdec \- decode audio from Opus format to WAV (or simple audio output)
@@ -9,7 +9,7 @@
.SH SYNOPSIS
.B opusdec
[
-.B -hv
+.B -hV
] [
.B --rate Hz
] [
@@ -47,7 +47,7 @@
.SH "OPTIONS"
.IP "-h, --help"
Print help message
-.IP "-v, --version"
+.IP "-V, --version"
Display version information
.IP "--quiet"
Suppresses program output
--- a/man/opusenc.1
+++ b/man/opusenc.1
@@ -1,7 +1,7 @@
.\" Process this file with
.\" groff -man -Tascii opusenc.1
.\"
-.TH opusenc 1 2012-05-28 "Xiph.Org Foundation" "opus-tools"
+.TH opusenc 1 2012-08-31 "Xiph.Org Foundation" "opus-tools"
.SH NAME
opusenc \- encode audio into the Opus format
@@ -9,7 +9,7 @@
.SH SYNOPSIS
.B opusenc
[
-.B -v
+.B -V
] [
.B -h
] [
@@ -87,7 +87,7 @@
.SH OPTIONS
.IP "-h, --help"
Show command help
-.IP "-v, --version"
+.IP "-V, --version"
Show the version number
.IP "--bitrate N.nnn"
Encoding bitrate in kbit/sec (6-256 per channel)
--- a/man/opusinfo.1
+++ b/man/opusinfo.1
@@ -1,7 +1,7 @@
.\" Process this file with
.\" groff -man -Tascii opusinfo.1
.\"
-.TH opusinfo 1 2012-05-28 "Xiph.Org Foundation" "opus-tools"
+.TH opusinfo 1 2012-08-31 "Xiph.Org Foundation" "opus-tools"
.SH NAME
opusinfo \- gives information about Opus files and does extensive validity checking
@@ -10,9 +10,11 @@
.B opusinfo
[
.B -q
-] [
+|
.B -v
] [
+.B -V
+] [
.B -h
]
.I file1.opus
@@ -47,6 +49,8 @@
the detailed informative messages; twice will remove warnings as well.
.IP -v
Verbose mode. At the current time, this does not do anything.
+.IP -V
+Print program version info and exit.
.SH NOTES
--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -456,7 +456,7 @@
printf (" --packet-loss n Simulate n %% random packet loss\n");
printf (" --save-range file Saves check values for every frame to a file\n");
printf (" -h, --help This help\n");
- printf (" -v, --version Version information\n");
+ printf (" -V, --version Version information\n");
printf (" --quiet Quiet mode\n");
printf ("\n");
}
@@ -697,7 +697,7 @@
/*Process options*/
while(1)
{
- c = getopt_long (argc_utf8, argv_utf8, "hvV",
+ c = getopt_long (argc_utf8, argv_utf8, "hV",
long_options, &option_index);
if (c==-1)
break;
@@ -746,7 +746,7 @@
usage();
quit(0);
break;
- case 'v':
+ case 'V':
version();
quit(0);
break;
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -113,7 +113,7 @@
printf("Encodes input_file using Opus. It can read the WAV, AIFF, or raw files.\n");
printf("\nGeneral options:\n");
printf(" -h, --help This help\n");
- printf(" -v, --version Version information\n");
+ printf(" -V, --version Version information\n");
printf(" --quiet Quiet mode\n");
printf("\n");
printf("input_file can be:\n");
@@ -308,7 +308,7 @@
/*Process command-line options*/
while(1){
int c;
- c=getopt_long(argc_utf8, argv_utf8, "hv",
+ c=getopt_long(argc_utf8, argv_utf8, "hV",
long_options, &option_index);
if(c==-1)
break;
@@ -452,7 +452,7 @@
usage();
exit(0);
break;
- case 'v':
+ case 'V':
opustoolsversion(opus_version);
exit(0);
break;