# File lib/fpm/program.rb, line 61
  def process_paths(args)
    paths_iolike = args
    read_from_stdin = args.length == 1 && args.first == '-'

    ok = true
    if @settings.inputs_path 
      if read_from_stdin
        $stderr.puts "Error: setting --inputs conflicts with passing '-' as the only argument"
        ok = false
      end
      unless File.file?(@settings.inputs_path)
        $stderr.puts "Error: '#{@settings.inputs_path}' does not exist"
        ok = false
      end
    end

    return :errors if !ok

    if read_from_stdin
      paths_iolike = $stdin
    end
    if @settings.inputs_path
      paths_iolike = File.open(@settings.inputs_path, 'r')
    end

    paths = []
    paths_iolike.each do |entry|
      paths << entry.strip
    end
    paths_iolike.close if paths_iolike.respond_to?(:close)
    paths
  end