Added --version option.

This commit is contained in:
masscat 2007-06-27 16:05:18 +00:00
parent f47043f915
commit 080f54028d
1 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,11 @@
#include <string.h>
#include <libgen.h>
#ifndef VERSION
#define VERSION "Unknown version"
#endif
/*
* FIXME: Not sure how to detect OpenGL in a platform portable way.
*/
@ -174,6 +179,11 @@ fill_config( struct my_config *config,
printf( " Enable disk image GBAMP compact flash emulation\n");
printf( "\n");
printf( " --help Display this message\n");
printf( " --version Display the version\n");
good_args = 0;
}
else if ( strcmp( argv[i], "--version") == 0) {
printf( "%s\n", VERSION);
good_args = 0;
}
else if ( strcmp( argv[i], "--disable-sound") == 0) {