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:
parent
aa14eaaf1c
commit
01a9de2876
@ -273,7 +273,9 @@ class Graph(NodeContainer, EdgeContainer, ClusterContainer):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
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()
|
output = output.strip()
|
||||||
depgraph = list()
|
depgraph = list()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user