class Cucumber::Cli::Configuration

def feature_files

def feature_files
  potential_feature_files = @paths.map do |path|
    path = path.gsub(/\\/, '/') # In case we're on windows. Globs don't work with backslashes.
    path = path.chomp('/')
    File.directory?(path) ? Dir["#{path}/**/*.feature"] : path
  end.flatten.uniq
  @options[:excludes].each do |exclude|
    potential_feature_files.reject! do |path|
      path =~ /#{Regexp.escape(exclude)}/
    end
  end
  potential_feature_files
end