From 6f4c61e326d6dd1152f5395a80a00dea3c458de0 Mon Sep 17 00:00:00 2001 From: Max Howell <max@methylblue.com> Date: Tue, 22 Sep 2009 19:58:10 +0100 Subject: [PATCH] brew install --ignore-dependencies I used the same option flag as ruby gems does. --- Library/Homebrew/ARGV+yeast.rb | 4 ++-- bin/brew | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/ARGV+yeast.rb b/Library/Homebrew/ARGV+yeast.rb index 8825718d46..913f7c7649 100644 --- a/Library/Homebrew/ARGV+yeast.rb +++ b/Library/Homebrew/ARGV+yeast.rb @@ -82,11 +82,11 @@ module HomebrewArgvExtension def usage <<-EOS Usage: brew command [formula] ... -Usage: brew [--prefix] [--cache] [--version] +Usage: brew [--prefix] [--cache] [--version|-v] Usage: brew [--verbose|-v] Commands: - install formula ... [--debug|-d] [--interactive|-i] + install formula ... [--debug|-d] [--interactive|-i] [--ignore-dependencies] remove formula ... search [regex] list [formula] ... diff --git a/bin/brew b/bin/brew index 58638ae024..b8f7211955 100755 --- a/bin/brew +++ b/bin/brew @@ -107,9 +107,11 @@ begin formulae = ARGV.formulae end - deps = [] - formulae.each { |f| deps += expand_deps f } - formulae = deps.reject { |f| f.installed? } + unless ARGV.include? '--ignore-dependencies' + deps = [] + formulae.each { |f| deps += expand_deps f } + formulae = deps.reject { |f| f.installed? } + end require 'set' done = Set.new -- GitLab