lib/rbsh/cli.rb in rbsh-0.0.1 vs lib/rbsh/cli.rb in rbsh-0.0.2

- old
+ new

@@ -16,12 +16,14 @@ def run if @opts.has_key? :v puts Rbsh::VERSION elsif @opts.has_key? :e - puts @shell.load_script!(@opts[:e]) + puts @shell.load_script!(@opts[:e]).run!.to_s else script_file = ARGV[0] + script = File.open(script_file).read + puts @shell.load_script!(script).run!.to_s end end private