From 5d7b9eec74284017db983202e09f41e1ddd65b24 Mon Sep 17 00:00:00 2001 From: Martin Kühl Date: Sun, 13 Feb 2011 23:23:00 +0100 Subject: New options: `brew graph` Accept any options that `brew deps` accepts. Default to `--all` to preserve previous behaviour. Signed-off-by: Adam Vandenberg --- Library/Contributions/examples/brew-graph | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') 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() -- cgit v1.2.3