Skip to content

Commit

Permalink
fixes #10 exit if an unknown option is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
beeftornado committed Jan 13, 2017
1 parent 517246e commit 0ea3a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/brew-rmtree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def main
when '--dry-run' then ARGV.shift; @dry_run = true
when '--force' then ARGV.shift; force = true
when '--ignore' then ARGV.shift; ignored_kegs.push(*ARGV); break
when /^-/ then puts "Unknown option: #{ARGV.shift.inspect}"; puts USAGE
when /^-/ then puts "Unknown option: #{ARGV.shift.inspect}"; puts USAGE; exit 1
when /^[^-]/ then rm_kegs.push(ARGV.shift)
else break
end; }
Expand Down

0 comments on commit 0ea3a76

Please sign in to comment.