lib/nanoc3/cli.rb in nanoc3-3.2.0b2 vs lib/nanoc3/cli.rb in nanoc3-3.2.0b3

- old
+ new

@@ -102,10 +102,10 @@ # # @return [Cri::Command] The loaded command def self.load_command_at(filename, command_name=nil) # Load code = File.read(filename) - cmd = Cri::Command.define(code) + cmd = Cri::Command.define(code, filename) # Set name command_name ||= File.basename(filename, '.rb') cmd.modify { name command_name }