Skip to content

Commit 6e80ed2

Browse files
author
Cuong Tran
committed
Handle the "--exclude" option correctly, #152 and #160
1 parent f9622df commit 6e80ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/annotate

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ OptionParser.new do |opts|
119119
end
120120
end
121121

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

0 commit comments

Comments
 (0)