lib/arql/app.rb in arql-0.3.13 vs lib/arql/app.rb in arql-0.3.14
- old
+ new
@@ -102,10 +102,10 @@
write_sql if should_write_sql?
append_sql if should_append_sql?
if effective_config[:code].present?
eval(effective_config[:code])
elsif effective_config[:args].present?
- effective_config[:args].each { |rb| load(rb) }
+ effective_config[:args].first.tap { |file| load(file) }
elsif STDIN.isatty
run_repl!
else
eval(STDIN.read)
end