Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä
2020-05-11 08:42:02 +03:00
5 changed files with 59 additions and 15 deletions

View File

@ -56,7 +56,7 @@ program
})
.option('q', {
alias: 'quiet',
describe: 'Silence all output',
describe: 'Silence all output. This option is not used in the interactive mode.',
default: false,
type: 'boolean'
})
@ -123,7 +123,19 @@ program
base_opts = ['--user=' + argv.user,
'--password=' + argv.password,
'--hosts=' + argv.hosts,
'--timeout=' + argv.timeout]
'--timeout=' + argv.timeout,
'--tsv=' + argv.tsv,
'--secure=' + argv.secure,
'--tls-verify-server-cert=' + argv['tls-verify-server-cert']]
// Only set the string options if they are defined, otherwise we'll end up with the value as
// the string 'undefined'
for (i of ['tls-key', 'tls-cert', 'tls-passphrase', 'tls-ca-cert']) {
if (argv[i]) {
base_opts.push('--' + i + '=' + argv[i])
}
}
return askQuestion()
} else {
maxctrl(argv, function() {