aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/link.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/link.rb')
-rw-r--r--Library/Homebrew/cmd/link.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb
index c5e34fe2c..604c12e0f 100644
--- a/Library/Homebrew/cmd/link.rb
+++ b/Library/Homebrew/cmd/link.rb
@@ -9,12 +9,9 @@ module Homebrew extend self
abort "Cowardly refusing to `sudo brew link'"
end
- if ARGV.force?
- mode = :force
- elsif ARGV.include?("--dry-run") || ARGV.include?("-n")
- mode = :dryrun
- else
- mode = nil
+ if ARGV.force? then mode = :force
+ elsif ARGV.dry_run? then mode = :dryrun
+ else mode = nil
end
ARGV.kegs.each do |keg|