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
commit01a9de2876417dbb89fbdd04e14308784208ecac (patch)
treeb2c6dca7b75ee969216a0ab192f12b7cfff9feaf /Library
parentaa14eaaf1c816bcc8a4e6280df0130128a03f000 (diff)
downloadbrew-01a9de2876417dbb89fbdd04e14308784208ecac.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()