isaacs/cluster-master — pull request #6 by mikefrey (2012-09-13 21:09:18+00:00)
Title: `args` property of config is being ignored

The `args` property of the config object passed into clusterMaster to start the cluster is ignored. This PR fixes the issue. Here is a test case:

var cluster = require('cluster')
var clusterMaster = require('../cluster-master')

if (cluster.isMaster) {
clusterMaster({
exec: __filename,
args: ['--some', 'args', 'here'],
size: 2
})
} else {
var args = process.argv.slice(2)
if (args.length > 0)
console.log('Worker args:', args)
else
console.log('No worker args!')
}