lib/inch/cli/command/base.rb in inch-0.5.0.rc5 vs lib/inch/cli/command/base.rb in inch-0.5.0.rc6

- old
+ new

@@ -67,11 +67,11 @@ # Returns a description of the command # # @return [String] def description - "" + '' end # Returns the name of the command by which it is referenced # in the command list # @@ -99,11 +99,11 @@ end protected def initialize_cli_options - name = self.class.to_s.split("::").last + name = self.class.to_s.split('::').last options_class = Command::Options.const_get(name) @options = options_class.new @options.usage = usage @options.ui = ui end @@ -114,10 +114,12 @@ # @param options [Options::Base] # @return [Config::Codebase] def to_config(options) config = Config.for(@options.language, Dir.pwd).codebase config.included_files = options.paths unless options.paths.empty? - config.excluded_files = options.excluded unless options.excluded.empty? + unless options.excluded.empty? + config.excluded_files = options.excluded + end config.read_dump_file = options.read_dump_file config end end end