 
   # Public: Creates a Runner instance
   #
-  # * `runOptions` a {ScriptOptions} object instance
+  # * `scriptOptions` a {ScriptOptions} object instance
   # * `emitter` Atom's {Emitter} instance. You probably don't need to overwrite it
-  constructor: (@runOptions, @emitter = new Emitter) ->
+  constructor: (@scriptOptions, @emitter = new Emitter) ->
 
   run: (command, extraArgs, codeContext, inputString = null) ->
     @startTime = new Date()


  options: ->
    cwd: @getCwd()
    env: @runOptions.mergedEnv(process.env)

  args: (codeContext, extraArgs) ->
    args = (@runOptions.cmdArgs.concat extraArgs).concat @runOptions.scriptArgs
    if not @runOptions.cmd? or @runOptions.cmd is ''
      args = codeContext.shebangCommandArgs().concat args
    args

    @emitter.dispose()

  getCwd: ->
    cwd = @scriptOptions.workingDirectory

    workingDirectoryProvided = cwd? and cwd isnt ''
    paths = atom.project.getPaths()
