Skip to content

Commit

Permalink
Merge pull request #154 from rcode5/fix-for-exclude-commandline-optio…
Browse files Browse the repository at this point in the history
…n-failure

Refactor initialization of exclude options
  • Loading branch information
ctran committed Dec 16, 2013
2 parents 1cbf044 + b6bd076 commit b238100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/annotate
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ OptionParser.new do |opts|
end
end

opts.on('-e', '--exclude [tests,fixtures,factories]', ['tests','fixtures','factories'], "Do not annotate fixtures, test files, and/or factories") do |exclusions|
opts.on('-e', '--exclude [DIRS]', ['tests','fixtures','factories'], "Do not annotate fixtures, test files, and/or factories") do |exclusions|
exclusions ||= %w(tests fixtures factories)
exclusions.each { |exclusion| ENV["exclude_#{exclusion}"] = "yes" }
end

Expand Down

0 comments on commit b238100

Please sign in to comment.