     # command action
     shell.confirm = false
     switch command
-      when 'add' then add env, parseInt argv[0]
+      when 'add' then add env, argv[0]
       when 'clear', 'cls' then process.stdout.write '\x1b[0;0H\x1b[K\x1b[J'
       when 'help', '?' then help SHELL_HELP
       when 'list', 'ls' then list()

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

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

# Restart all process
restart = ->

quit = (resolve) ->
  switch resolve
    when 'yes', 'y' then shutdown 'Bye!'
    when 'no', 'n' then console.log ''; return [null, '']
    else return ['quit', style.warning 'ARE YOU SURE? (yes|y|no|n)']

# Welcome screen
process.stdout.write WELCOME

# Getting user options
argv = process.argv.slice 2
