Read MaxCtrl password from stdin when none provided

When the -p parameter is given without an argument, the password is read
from the command line. This allows passwords to be given to MaxCtrl in a
safer manner.
This commit is contained in:
Markus Mäkelä
2018-02-25 18:06:52 +02:00
parent b8df0dfc02
commit 2df47d8999
4 changed files with 16 additions and 2 deletions

View File

@ -31,7 +31,7 @@ program
})
.option('p', {
alias: 'password',
describe: 'Password for the user',
describe: 'Password for the user. To input the password manually, give -p as the last argument or use --password=\'\'',
default: 'mariadb',
type: 'string'
})