[Change] -v simply displays version and quits.

This commit is contained in:
Allanis 2013-03-26 16:50:57 +00:00
parent e139172fed
commit 2dc53af39c

View File

@ -249,7 +249,9 @@ void conf_parseCLI(int argc, char** argv) {
sound_volume(atof(optarg)); sound_volume(atof(optarg));
break; break;
case 'v': case 'v':
LOG(APPNAME": version %d.%d.%d", VMAJOR, VMINOR, VREV); // By now it has already displayed the version.
//LOG(APPNAME": version %d.%d.%d", VMAJOR, VMINOR, VREV);
exit(EXIT_SUCCESS);
case 'h': case 'h':
print_usage(argv); print_usage(argv);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);