Bug #81041 Running mysql with both --no-defaults and --defaults-file prints unhelpful error
Submitted: 12 Apr 2016 8:47 Modified: 12 Apr 2016 9:19
Reporter: Lars Tangvald Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.6.29, 5.7.11, 5.6.30, 5.7.12, 5.5.49 OS:Any
Assigned to: CPU Architecture:Any

[12 Apr 2016 8:47] Lars Tangvald
Description:
If trying to run the command line client specifying both --no-defaults and --defaults-file, instead of an error about the options conflicting, the second option will be listed as unknown:

 root@cc882c7bf057:/pack# mysql --no-defaults --defaults-file=/tmp/test.cnf
 mysql: unknown variable 'defaults-file=/tmp/test.cnf'

Same issue occurs on 5.7.11, with a slightly different error message

How to repeat:
* Install server and client
* Run mysql --no-defaults --defaults-file=/something
[12 Apr 2016 9:19] MySQL Verification Team
Hello Lars,

Thank you for the report.

Thanks,
Umesh