The program should not asking for password as command line argument because it's insecure in bash environment and viewable on ps. We also pollute the log with Mysql Warning.
The Alternative should be using mysql_config_editor and asking path for each host as command line option.