Use comma separated lists in MaxCtrl options
Using commas instead of spaces prevents a the misinterpretation of commands as hostnames. If the `--hosts` option was given just before a command, it would consume the commands as arguments to the `--hosts` list.
This commit is contained in:
@ -38,9 +38,9 @@ program
|
||||
.option('h', {
|
||||
alias: 'hosts',
|
||||
describe: 'List of MaxScale hosts. The hosts must be in ' +
|
||||
'HOST:PORT format and each value must be separated by spaces.',
|
||||
'HOST:PORT format and each value must be separated by a comma.',
|
||||
default: 'localhost:8989',
|
||||
type: 'array'
|
||||
type: 'string'
|
||||
})
|
||||
.option('s', {
|
||||
alias: 'secure',
|
||||
|
||||
Reference in New Issue
Block a user