# File lib/background_process/pty_background_process.rb, line 57
  def select_streams(which)
    case which
    when :stderr        then stderr # let stderr throw the exception
    when :stdout, :both then [stdout]
    else raise(ArgumentError, "invalid stream specification: #{which}")
    end.compact
  end