I needed a way to provide password without having it in command argument (which could then be read from user users from the server in /proc) to use it in a script.
First approach would have been to accept it from STDIN when using an option, but that approach would be incompatible with any other STDIN usage, and .my.cnf files are common enough so that would probably be helpful to someone else.
I tried to match your coding style but it is probably not close enough, sorry about that.
I needed a way to provide password without having it in command argument (which could then be read from user users from the server in /proc) to use it in a script. First approach would have been to accept it from STDIN when using an option, but that approach would be incompatible with any other STDIN usage, and
.my.cnf
files are common enough so that would probably be helpful to someone else.I tried to match your coding style but it is probably not close enough, sorry about that.