Bug #91256 mysqlbinlog must print its group to read
Submitted: 14 Jun 2018 12:12
Reporter: Mikiya Okuno Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:8.0.11,5.5.60, 5.6.40, 5.7.22 OS:Any
Assigned to: CPU Architecture:Any

[14 Jun 2018 12:12] Mikiya Okuno
Description:
mysqlbinlog command doesn't print groups to the console when --help option is used.

How to repeat:
Run mysqlbinlog command with --help option, and see no line like "The following groups are read" is displayed.

Suggested fix:
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 1181104d5c4..d8beafe7cf1 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -2079,6 +2079,7 @@ the mysql command line client.\n\n");
       break;
     }
   }
+  print_defaults(MYSQL_CONFIG_NAME, load_default_groups);
   my_print_help(my_long_options);
   my_print_variables(my_long_options);
 }
[14 Jun 2018 12:13] MySQL Verification Team
BTW, some command specify "my" as the first argument of print_defaults() function. IMHO, MYSQL_CONFIG_NAME must be used.