Skip to content

Commit

Permalink
Support multiple CLI files
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 17, 2015
1 parent 97449ef commit c404da8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 7 additions & 3 deletions bin/editorconfig
Expand Up @@ -30,6 +30,10 @@ OptionParser.new do |opts|
end
end.parse!

config = EditorConfig.load_file(ARGV[0], **options)
config = EditorConfig.preprocess(config, version: options[:version])
config.each { |k, v| puts "#{k}=#{v}" }
ARGV.each do |filename|
config = EditorConfig.load_file(filename, **options)
config = EditorConfig.preprocess(config, version: options[:version])

puts "[#{filename}]" if ARGV.length > 1
config.each { |k, v| puts "#{k}=#{v}" }
end
1 change: 0 additions & 1 deletion test/results.txt
Expand Up @@ -30,4 +30,3 @@
161 - parent_dir_overload_repeat2 (Failed)
163 - root_file_mixed_case (Failed)
167 - top_level_path_separator (Failed)
174 - multiple_files_on_command_line (Failed)

0 comments on commit c404da8

Please sign in to comment.