aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Kühl2011-02-13 23:23:00 +0100
committerAdam Vandenberg2011-02-20 18:04:53 -0800
commit5d7b9eec74284017db983202e09f41e1ddd65b24 (patch)
tree075e98806f891e3c220bc35272b37e0401019fd4 /Library
parent9decd41080311184554d8ccd69b1a6105c8474b6 (diff)
downloadhomebrew-5d7b9eec74284017db983202e09f41e1ddd65b24.tar.bz2
New options: `brew graph`
Accept any options that `brew deps` accepts. Default to `--all` to preserve previous behaviour. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-graph4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-graph b/Library/Contributions/examples/brew-graph
index dd87ffdf5..27c80af83 100755
--- a/Library/Contributions/examples/brew-graph
+++ b/Library/Contributions/examples/brew-graph
@@ -273,7 +273,9 @@ class Graph(NodeContainer, EdgeContainer, ClusterContainer):
def main():
- code, output = run(["brew", "deps", "--all"])
+ cmd = ["brew", "deps"]
+ cmd.extend(sys.argv[1:] or ["--all"])
+ code, output = run(cmd)
output = output.strip()
depgraph = list()