Blob Blame History Raw
Index: mysqltuner.pl
===================================================================
--- mysqltuner.pl	(revision 37)
+++ mysqltuner.pl	(working copy)
@@ -50,7 +50,7 @@
 		"noinfo" => 0,
 		"nocolor" => 0,
 		"skipsize" => 0,
-		"skipversion" => 0,
+		"checkversion" => 0,
 	);
 	
 # Gather the options from the command line
@@ -60,7 +60,8 @@
 		'noinfo',
 		'nocolor',
 		'skipsize',
-		'skipversion',
+		'checkversion',
+		'skipversion', # ignored (use --checkversion), present for backwards compatibility
 		'help',
 	);
 
@@ -79,7 +80,7 @@
 		"   Performance and Reporting Options\n".
 		"      --skipsize       Don't enumerate tables and their types/sizes\n".
 		"                       (Recommended for servers with many tables)\n".
-		"      --skipversion    Don't check for updates to MySQLTuner\n\n".
+		"      --checkversion   Check for updates to MySQLTuner\n\n".
 		"   Output Options:\n".
 		"      --nogood         Remove OK responses\n".
 		"      --nobad          Remove negative/suggestion responses\n".
@@ -269,7 +270,7 @@
 # Checks for updates to MySQLTuner
 sub validate_tuner_version {
 	print "\n-------- General Statistics --------------------------------------------------\n";
-	if ($opt{skipversion} eq 1) {
+	if ($opt{checkversion} ne 1) {
 		infoprint "Skipped version check for MySQLTuner script\n";
 		return;
 	}