   console.log message + '\n'
 
 # Add server process
-add = (env, cpus = 1) ->
+add = (env, cpus) ->
+  if cpus? then cpus = parseInt cpus else cpus = 1
   num = (pid for pid of workers).length
   if num < MAX_CPUS
     if cpus > MAX_CPUS - num

# Starfruit - Command Line
#
# MIT Licensed
#
# Copyright (c) 2014 Kan Kung-Yip

# Module dependencies
fs = require 'fs'

    while cpus > 0
      start env
      cpus--
    return console.log (if num > 1 then '%s processes are running\n' else '%s process is running\n'), style.int num
  console.log 'Max running %s processes, use %s command look all processes\n', style.int(MAX_CPUS), style.cmd('list')

# Remove worker by pid of process
remove = (pid) ->
  return console.log 'Usage: %s <pid>\n', style.cmd 'remove' unless pid
  return console.error '%s\n', style.error 'Not found pid ' + pid unless workers.hasOwnProperty pid
  #workers[pid].auto = false
  workers[pid].process.kill 'SIGKILL'
  console.log 'Process %s shutdown\n', style.int pid

# Restart all process
restart = ->
