Skip to content

Commit 5db9d76

Browse files
authored
Fix option "prettyicon" mysqltuner.pl
Added option "prettyicon" along with "noprettyicon". Defaults to noprettyicon. Updated --help menu. Fixes error message "Use of uninitialized value $opt{"prettyicon"} in numeric ne (!=) at mysqltuner.pl line 236"
1 parent 9fbfb60 commit 5db9d76

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mysqltuner.pl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ package main;
118118
"feature" => '',
119119
"dbgpattern" => '',
120120
"defaultarch" => 64,
121+
"prettyicon" => 0,
121122
"noprettyicon" => 0
122123
);
123124

@@ -155,7 +156,8 @@ package main;
155156
'defaults-extra-file=s', 'dumpdir=s',
156157
'feature=s', 'dbgpattern=s',
157158
'defaultarch=i', 'experimental',
158-
'nondedicated', 'noprettyicon'
159+
'nondedicated', 'prettyicon',
160+
'noprettyicon'
159161
)
160162
or pod2usage(
161163
-exitval => 1,
@@ -233,7 +235,8 @@ package main;
233235

234236
$opt{cvefile} = 'vulnerabilities.csv'; #CVE File for vulnerability checks
235237
}
236-
$opt{prettyicon}=0 if $opt{prettyicon}!=1;
238+
$opt{prettyicon} = 0 if $opt{prettyicon}!=1;
239+
$opt{prettyicon} = 0 if ( $opt{noprettyicon} == 1 );
237240
$opt{nocolor} = 1 if defined( $opt{outputfile} );
238241
$opt{tbstat} = 0 if ( $opt{notbstat} == 1 ); # Don't print table information
239242
$opt{colstat} = 0 if ( $opt{nocolstat} == 1 ); # Don't print column information
@@ -7506,6 +7509,7 @@ =head1 OUTPUT OPTIONS
75067509
--verbose Print out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
75077510
--color Print output in color
75087511
--nocolor Don't print output in color
7512+
--prettyicon Print output with new icons: ✔, ✘, ℹ, ⚙, ⌨️, ...
75097513
--noprettyicon Print output with legacy tag [OK], [!!], [--], [CMD], ...
75107514
--nogood Remove OK responses
75117515
--nobad Remove negative/suggestion responses

0 commit comments

Comments
 (0)