     .arguments('<heroku.log>')
     .option('--started <regexp>', 'Regular expression matching output sent by process when started',
             String, 'noflo-runtime-msgflo started')
+    .option('--role <rolename>', 'Calculate stats for a subset of roles. Can be specified multiple times',
+            collectOption, [])
     .action (f, env) ->
       filename = f
     .parse(process.argv)

    # FIXME: handle. Maybe outside/before


analyzeStartups = (filename, started, callback) ->
  fs = require 'fs'

  state = {}


  started = (info) ->
    return program.started.test info
  roles = program.role
  analyzeStartups filename, started, roles, (err, res) ->
    throw err if err
    console.log res

