version 1.31, 2003/10/31 08:47:31 |
version 1.32, 2004/01/14 07:32:58 |
|
|
int |
int |
main(int argc, char **argv) |
main(int argc, char **argv) |
{ |
{ |
int cmd; |
int ch, cmd; |
char *arg; |
char *arg; |
|
|
cdname = getenv("DISC"); |
cdname = getenv("DISC"); |
|
|
if (!cddb_host) |
if (!cddb_host) |
cddb_host = "freedb.freedb.org"; |
cddb_host = "freedb.freedb.org"; |
|
|
for (;;) { |
while ((ch = getopt(argc, argv, "svd:f:")) != -1) |
switch (getopt(argc, argv, "svd:f:")) { |
switch (ch) { |
case -1: |
|
break; |
|
case 's': |
case 's': |
verbose = 0; |
verbose = 0; |
continue; |
break; |
case 'v': |
case 'v': |
verbose = 2; |
verbose = 2; |
continue; |
break; |
case 'f': |
case 'f': |
cdname = optarg; |
cdname = optarg; |
continue; |
break; |
case 'd': |
case 'd': |
cddb_host = optarg; |
cddb_host = optarg; |
continue; |
break; |
default: |
default: |
usage(); |
usage(); |
} |
} |
break; |
|
} |
|
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
|
|