From 01a9de2876417dbb89fbdd04e14308784208ecac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ku=CC=88hl?= Date: Sun, 13 Feb 2011 23:23:00 +0100 Subject: [PATCH] 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(-) diff --git a/Library/Contributions/examples/brew-graph b/Library/Contributions/examples/brew-graph index dd87ffdf5d..27c80af83b 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()