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:
Daira Hopwood 2022-02-09 11:48:43 +00:00
parent 282c0db8d5
commit cf1047324e
1 changed files with 5 additions and 1 deletions

View File

@ -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 \