Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#
# -T | --no-cargo-target-arg
# -t | --cargo-target-arg
-# Suppress --target (or un-suppress it).
-# Only useful with -m.
+# Suppress --target (or un-suppress it). Only useful with -m.
+# Done automatically when nailing-cargo sees that the cargo
+# subcommand is one which needs it, eg `fetch'.
#
# Cargo.nail:
#
$cargo_lock_update //= 1;
$target = undef;
}
+ if ($ARGV[1] =~ m/^(?:fetch)$/) {
+ $cargo_target_arg=0;
+ }
}
$cargo_lock_update //= 0;
$cargo_manifest_args //=