diff options
| author | Martin Kühl | 2011-02-13 23:23:00 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-02-20 18:04:53 -0800 |
| commit | 01a9de2876417dbb89fbdd04e14308784208ecac (patch) | |
| tree | b2c6dca7b75ee969216a0ab192f12b7cfff9feaf /Library | |
| parent | aa14eaaf1c816bcc8a4e6280df0130128a03f000 (diff) | |
| download | brew-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-x | Library/Contributions/examples/brew-graph | 4 |
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() |
