Add short version of --tls-verify-server-cert

It is frequently used when using self-signed certificates so making it
shorther makes life easier. Also added the missing --tls-passphrase into
the TLS options group.
This commit is contained in:
Markus Mäkelä 2019-03-04 10:13:06 +02:00
parent 6436d959e3
commit af33d19703
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -65,7 +65,7 @@ program
default: false,
type: 'boolean'
})
.group(['s', 'tls-key', 'tls-cert', 'tls-ca-cert', 'tls-verify-server-cert'], 'HTTPS/TLS Options:')
.group(['s', 'tls-key', 'tls-passphrase', 'tls-cert', 'tls-ca-cert', 'n'], 'HTTPS/TLS Options:')
.option('s', {
alias: 'secure',
describe: 'Enable HTTPS requests',
@ -88,7 +88,8 @@ program
describe: 'Path to TLS CA certificate',
type: 'string'
})
.option('tls-verify-server-cert', {
.option('n', {
alias: 'tls-verify-server-cert',
describe: 'Whether to verify server TLS certificates',
default: true,
type: 'boolean'