class Opal::CLI

def evals_or_file

evals, stdin or a filepath.
Internal: Yelds a string of source code and the proper filename for either
def evals_or_file
  if evals.any?
    yield evals.join("\n"), '-e'
  else
    if file and (filename != '-' or evals.empty?)
      yield file.read, filename
    end
  end
end