Use -v for version information

This commit is contained in:
Julien BLACHE 2009-04-18 17:27:17 +02:00
parent 5e48a8bb6a
commit bacdddb82f

View File

@ -169,7 +169,7 @@ void usage(char *program) {
printf(" -f Run in foreground\n"); printf(" -f Run in foreground\n");
printf(" -y Yes, go ahead and run as non-root user\n"); printf(" -y Yes, go ahead and run as non-root user\n");
printf(" -b <id> ffid to be broadcast\n"); printf(" -b <id> ffid to be broadcast\n");
printf(" -V Display version information\n"); printf(" -v Display version information\n");
printf("\n\n"); printf("\n\n");
printf("Valid debug modules:\n"); printf("Valid debug modules:\n");
printf(" config,webserver,database,scan,query,index,browse\n"); printf(" config,webserver,database,scan,query,index,browse\n");
@ -520,7 +520,7 @@ int main(int argc, char *argv[]) {
err_setlevel(2); err_setlevel(2);
config.foreground=0; config.foreground=0;
while((option=getopt(argc,argv,"D:d:c:P:frysiub:V")) != -1) { while((option=getopt(argc,argv,"D:d:c:P:frysiub:v")) != -1) {
switch(option) { switch(option) {
case 'b': case 'b':
ffid=optarg; ffid=optarg;
@ -563,7 +563,7 @@ int main(int argc, char *argv[]) {
force_non_root=1; force_non_root=1;
break; break;
case 'V': case 'v':
fprintf(stderr,"Firefly Media Server: Version %s\n",VERSION); fprintf(stderr,"Firefly Media Server: Version %s\n",VERSION);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
break; break;