[MDEV-28671] Presentation of aliases in `mariadbd --verbose --help` is highly redundant Created: 2022-05-25 Updated: 2024-01-23 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 10.11, 11.5 |
| Type: | Task | Priority: | Critical |
| Reporter: | Daniel Lenski | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | beginner-friendly | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
| Comments |
| Comment by Daniel Black [ 2022-05-25 ] |
|
Good call in removing deprecated options here. Be a bit careful however, the --help --verbose text is used by machine parsing in some circumstances. |
| Comment by Daniel Lenski [ 2022-05-25 ] |
|
Thanks! To be clear, I wasn't proposing to remove them entirely from the listing, but simply to list them as deprecated; although if you're okay with simply removing the ones that are deprecated, I'd be in favor of that too.
From the comment preceding that line, it looks like the verbose help text is only parsed because my_print_defaults is missing some of the relevant information. (https://github.com/MariaDB/mariadb-docker/blob/master/docker-entrypoint.sh#L111-L119) Perhaps we could improve the my_print_defaults output and de-cruft the options list in one fell swoop. |
| Comment by Daniel Black [ 2022-05-26 ] |
|
I'm in favour of removal from output. serg do you have a preference? The problem with my_print_defaults is that it can parse config files and arguments well, however what scripts are often after is the server defaults (which also neglects the auto sized/determined values which are not in the output of --help --verbose as far as I remember). Its a rather big task if you want to take it on (I suspect it would be taking sys_vars.cc and compiling into both the my_print_defaults and server). |
| Comment by Sergei Golubchik [ 2022-06-06 ] |
|
Yes, let's remove deprecated options and aliases |
| Comment by Christian Gonzalez [ 2022-11-24 ] |
|
Hi! I can start working on this one if nobody else is doing it. |
| Comment by Daniel Black [ 2022-11-24 ] |
|
Christianggm, nobody is immediately working on it so please go for it. Looking forward to seeing your code. |
| Comment by Daniel Black [ 2023-01-03 ] |
|
Happy with https://github.com/MariaDB/server/pull/2376 ? |