diff --git a/lib/cli/Actions.js b/lib/cli/Actions.js index 18a579c7..8c15e8f4 100644 --- a/lib/cli/Actions.js +++ b/lib/cli/Actions.js @@ -129,8 +129,9 @@ Actions.prototype._withEach = function (pidOrNames, options, withEach, afterAll) // remove the 'Cluster: ' from the cluster manager's name name = name.substring('Cluster: '.length) } - - if (name === pidOrName || managedProcess.pid === pidOrName || pidOrName === '*') { + //pidOrName maybe a number by user input + //pidOrname maybe -a -something e,g. so i add remove all command. + if (name == pidOrName || managedProcess.pid === pidOrName || pidOrName === '*' || pidOrName === 'all') { tasks.push(function (managedProcess, callback) { withEach(managedProcess, guvnor, function (error) { if (managedProcess && managedProcess.disconnect) {