Commit 84c2ad15 authored by Michael Smith's avatar Michael Smith

Change -R usage to not have an option. This makes more sense and is more standard.

svn path=/trunk/vorbis-tools/; revision=3703
parent 3ec957c1
...@@ -12,7 +12,7 @@ oggdec - simple decoder, Ogg Vorbis file to PCM audio file (WAV or RAW). ...@@ -12,7 +12,7 @@ oggdec - simple decoder, Ogg Vorbis file to PCM audio file (WAV or RAW).
] [ ] [
.B -e endianness .B -e endianness
] [ ] [
.B -R rawness .B -R
] [ ] [
.B -s signedness .B -s signedness
] [ ] [
...@@ -50,7 +50,7 @@ Display version information. ...@@ -50,7 +50,7 @@ Display version information.
Bits per sample. Valid values are 8 or 16. Bits per sample. Valid values are 8 or 16.
.IP "-e n, --endian=n" .IP "-e n, --endian=n"
Set endianness for 16-bit output. 0 (default) is little-endian (Intel byte order). 1 is big-endian (sane byte order). Set endianness for 16-bit output. 0 (default) is little-endian (Intel byte order). 1 is big-endian (sane byte order).
.IP "-R n, --raw=n" .IP "-R, --raw"
Output in raw format. If not specified, writes WAV file (RIFF headers). Output in raw format. If not specified, writes WAV file (RIFF headers).
.IP "-s n, --sign=n" .IP "-s n, --sign=n"
Set signedness for output. 0 for unsigned, 1 (default) for signed. Set signedness for output. 0 for unsigned, 1 (default) for signed.
......
...@@ -26,7 +26,7 @@ struct option long_options[] = { ...@@ -26,7 +26,7 @@ struct option long_options[] = {
{"version", 0, 0, 'v'}, {"version", 0, 0, 'v'},
{"bits", 1, 0, 'b'}, {"bits", 1, 0, 'b'},
{"endianness", 1, 0, 'e'}, {"endianness", 1, 0, 'e'},
{"raw", 1, 0, 'R'}, {"raw", 0, 0, 'R'},
{"sign", 1, 0, 's'}, {"sign", 1, 0, 's'},
{"output", 1, 0, 'o'}, {"output", 1, 0, 'o'},
{NULL,0,0,0} {NULL,0,0,0}
...@@ -100,7 +100,7 @@ static void parse_options(int argc, char **argv) ...@@ -100,7 +100,7 @@ static void parse_options(int argc, char **argv)
case 'o': case 'o':
outfilename = strdup(optarg); outfilename = strdup(optarg);
case 'R': case 'R':
raw = atoi(optarg); raw = 1;
break; break;
default: default:
fprintf(stderr, "Internal error: Unrecognised argument\n"); fprintf(stderr, "Internal error: Unrecognised argument\n");
......
Markdown is supported
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