contrib/devtools/rust-deps-graph.sh: allow overriding the arguments to `cargo deps`.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
282c0db8d5
commit
cf1047324e
|
@ -2,7 +2,11 @@
|
|||
|
||||
export LC_ALL=C
|
||||
|
||||
cargo deps --no-transitive-deps | dot \
|
||||
# default arguments are --no-transitive-deps
|
||||
ARGS="${*:---no-transitive-deps}"
|
||||
echo "Using args: $ARGS"
|
||||
|
||||
cargo deps $ARGS | dot \
|
||||
-Earrowhead=vee \
|
||||
-Gratio=0.45 \
|
||||
-Gsize=50 \
|
||||
|
|
Loading…
Reference in New Issue