     end)
   end
 
+  defp handle_input(input) do
+        input = input
+        |> Enum.map(fn(x) -> String.split(x, [" ", ","], trim: true) end)
+        |> List.flatten
+  end
+
+
+  defp handle_config(path) do
+    if File.exists?(path) do
+      {config, _} = Code.eval_file(path)
+      config
+    else
+      []
+    end
+  end
+
 end

      true ->
        ElixirScript.compile(input, compile_opts)
      _ ->
        input = input
        |> Enum.map(fn(x) -> String.split(x, [" ", ","], trim: true) end)
        |> List.flatten

        ElixirScript.compile_path(input, compile_opts)


  usage: elixirscript <input> [options]
  <input> path to elixir files or
  the elixir code string if passed the -ex flag

  options:
  -c  --config          a path to an elixirscript configuration file
  -f  --format [format] module format of output. options: es (default), common, umd
  -o  --output [path]   places output at the given path
  -ex --elixir          read input as elixir code string
