[MDEV-22982] Client --help options break when configuration files contain unknown options Created: 2020-06-23  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-22981 Bad "default-character-set" option in... Closed

 Description   

If a configuration file contains unknown options, and if you run a client with the --help option, then it will fail. For example:

$ sudo tee /etc/mysql/mariadb.conf.d/bad_option.cnf <<EOF
[mysql]
bad_option=1
EOF
$ mysql --help
mysql: unknown variable 'bad_option=1'

It seems like overkill to make --help fail in this scenario. I think --help should always succeed.


Generated at Thu Feb 08 09:18:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.