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:
@ -26,6 +26,9 @@ module.exports = function() {
|
||||
// servers.
|
||||
this.maxctrl = function(argv, cb) {
|
||||
|
||||
// Split the hostnames, separated by commas
|
||||
argv.hosts = argv.hosts.split(',')
|
||||
|
||||
this.argv = argv
|
||||
|
||||
if (!argv.hosts || argv.hosts.length < 1) {
|
||||
|
Reference in New Issue
Block a user