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>
This commit is contained in:
Martin Kühl 2011-02-13 23:23:00 +01:00 committed by Adam Vandenberg
parent aa14eaaf1c
commit 01a9de2876

View File

@ -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()