Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
2.5
-
None
-
MXS-SPRINT-119
Description
If in 2.5 the -p option is used
[root@e6609fcdb55c /]# maxctrl -u someuser -p |
Not enough arguments following: p
|
Option --password has the same behaviour like MXS-3272
This appears to have happened due to changes in the argument parsing library yargs. If a parameter is given that expects an argument and no argument is given, the default value (in this case mariadb) was used. This made it impossible to know whether the user provided a password without explicitly passing an empty string to the -p option.
This would require changes in the parser library and it's possible that the code was written with an expectation for it to work in a way that was not intended by the library developers.
For starters, we'll update the command help output to mention that passing an empty string as the password will cause it to be read from the standard input.