summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--s3switch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/s3switch.c b/s3switch.c
index 5462fe3..3b295f5 100644
--- a/s3switch.c
+++ b/s3switch.c
@@ -17,6 +17,8 @@
#include "lrmi.h"
+#define S3SWITCH_VERSION_STRING "0.1"
+
// Usage:
// s3switch [-q] [crt|lcd|both]
@@ -439,6 +441,11 @@ main( int argc, char ** argv )
newtv = TV_FORMAT_NTSC;
else if( strcasecmp( *argv, "pal" ) == 0 )
newtv = TV_FORMAT_PAL;
+ else if( strcmp( *argv, "-V" ) == 0 )
+ {
+ printf("s3switch " S3SWITCH_VERSION_STRING "\n");
+ exit( 0 );
+ }
else if( strcmp( *argv, "-h" ) == 0 )
{
usage();