elixir-lang/elixir — pull request #203 by alco (2012-03-29 09:17:57+00:00)
Title: Allow passing multiple files to elixir/iex

Previously, the following invocation

iex file1.exs file2.exs

would require file1.ex and pass file2.ex as an argument to the shell. In
order to require both files, we had to write

iex -r file1.exs file2.exs
# or
iex -r file1.exs -r file2.exs

This commit make it possible to invoke elixir in the following ways:

# both file1.exs and file2.exs are `require`d
iex file1.exs file2.exs

# files starting with '-' can still be required using '-r'
iex -r '-strange_name.exs' normal_name.exs

# to pass additional options to the shell, '--' must be used
# in this case, all .ex files are `require`d and the string
# 'this is passed to the shell' is passed as a single argument
iex file1.ex file2.ex fileN.ex -- 'this is passed to the shell'