* `--just-linkfarm`: Make the out-of-tree linkfarm as if for
`--cargo-lock-update`, but do not actually run any command, nor
- try to copy back a a generated `Cargo.lock`.
+ try to copy back a a generated `Cargo.lock`. Forces
+ `--keep-linkfarm` (even if the contrary is also specified).
+
+ * `--keep-linkfarm` | `--clean-linkfarm`: When doing an out-of-tree
+ lockfile update, controls whether the linkfarm is kept afterwards.
+ Overrides the `oot.clean` config option. (Default: keep.)
* `--leave-nailed`: At the end, leave all the `Cargo.toml` files in
their edited state, rather than (trying to) clean them up. To
be just the local username (meaning `@localhost`), or
`<user>@<host>`.
+ * `clean` (boolean): When doing a `Cargo.lock` update, which involves
+ linkfarming in the build directory, whether the clean up the
+ linkfarm afterwards. Default: `true`. Can be overridden by
+ `--keep-linkfarm` or `--clean-linkfarm`.
+
`[arch]`: Architecture convenience aliases
------------------------------------------
-T<arch> --target=<arch> Specify target architecture
-h --help Print this message
--man --manual Display complete manual (in w3m)
- --just-linkfarm Make the linkfarm as for -u, then stop
--leave-nailed Leave the nailed Cargo.toml in place
+ --just-linkfarm | --clean-linkfarm | --keep-linkfarm (default)
-s<subcommand> Treat command as `cargo <subcommand>`
--subcommand-props=<prop>,... Override command props (see docs)
} elsif (m{^--just-linkfarm$}) {
$just_linkfarm = 1;
$cargo_lock_update= 1;
+ } elsif (m{^--(clean|keep)-linkfarm$}) {
+ $oot_clean = $1 eq 'clean';
} elsif (m{^--leave-nailed$}) {
$leave_nailed = 1;
} elsif (s{^--subcommand-props=}{}) {