lib/wright/cli.rb in wright-0.3.1 vs lib/wright/cli.rb in wright-0.3.2

- old
+ new

@@ -34,10 +34,10 @@ @parser.order!(argv) end def run_script(arguments) if @commands.empty? && arguments.any? - script = arguments.shift + script = File.expand_path(arguments.shift) load script else commands = @commands.empty? ? $stdin.read : @commands.join("\n") @main.instance_eval(commands, '<main>', 1) end