lib/inch/cli/command/base.rb in inch-0.3.0.rc2 vs lib/inch/cli/command/base.rb in inch-0.3.0.rc3

- old
+ new

@@ -58,11 +58,12 @@ CLI::CommandParser.default_command = name if default CLI::CommandParser.commands[name] = self end def initialize - options_class = "Command::Options::#{self.class.to_s.split('::').last}" - @options = eval(options_class).new + name = self.class.to_s.split('::').last + options_class = Command::Options.const_get(name) + @options = options_class.new @options.usage = usage end # Returns a description of the command #