Permalink
Browse files

Removed Ruby warning by not shadowing opt variable anymore.

  • Loading branch information...
1 parent 8b9fac2 commit c669957598b03596a2180c777e1b77bf8c2754b0 Tobias Bühlmann committed May 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/bacon
View
@@ -8,7 +8,7 @@ module Bacon; end
automatic = false
output = 'SpecDoxOutput'
-opts = OptionParser.new("", 24, ' ') { |opts|
+options = OptionParser.new("", 24, ' ') { |opts|
opts.banner = "Usage: bacon [options] [files | -a] [-- untouched arguments]"
opts.separator ""
@@ -103,7 +103,7 @@ if automatic
end
if files.empty?
- puts opts.banner
+ puts options.banner
exit 1
end

0 comments on commit c669957

Please sign in to comment.