Commit a3ad5089 authored by Tatiana A. Nurnberg's avatar Tatiana A. Nurnberg

Bug#42027: Incorrect parsing of debug and verbose options for mysqldumpslow

Options got normalised to long rather than short options
since we gave primary name and alias in wrong order.
Consequently querying for the option using the short
options (the correct primary name) didn't work, rendering
the options in question inaccessible.

We restore the right order of the universe, or at least
the alii for --debug and --verbose.
parent b615d8bc
...@@ -17,9 +17,9 @@ my %opt = ( ...@@ -17,9 +17,9 @@ my %opt = (
); );
GetOptions(\%opt, GetOptions(\%opt,
'verbose|v+',# verbose 'v|verbose+',# verbose
'help+', # write usage info 'help+', # write usage info
'debug|d+', # debug 'd|debug+', # debug
's=s', # what to sort by (t, at, l, al, r, ar etc) 's=s', # what to sort by (t, at, l, al, r, ar etc)
'r!', # reverse the sort order (largest last instead of first) 'r!', # reverse the sort order (largest last instead of first)
't=i', # just show the top n queries 't=i', # just show the top n queries
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment