Add `--link-mode` defaults to CLI (#2549)

This commit is contained in:
Charlie Marsh 2024-03-19 15:13:17 -04:00 committed by GitHub
parent 5637ce3887
commit 2e65092be0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -495,6 +495,9 @@ struct PipSyncArgs {
refresh_package: Vec<PackageName>,
/// The method to use when installing packages from the global cache.
///
/// Defaults to `clone` (also known as Copy-on-Write) on macOS, and `hardlink` on Linux and
/// Windows.
#[clap(long, value_enum, default_value_t = install_wheel_rs::linker::LinkMode::default())]
link_mode: install_wheel_rs::linker::LinkMode,
@ -740,6 +743,9 @@ struct PipInstallArgs {
no_deps: bool,
/// The method to use when installing packages from the global cache.
///
/// Defaults to `clone` (also known as Copy-on-Write) on macOS, and `hardlink` on Linux and
/// Windows.
#[clap(long, value_enum, default_value_t = install_wheel_rs::linker::LinkMode::default())]
link_mode: install_wheel_rs::linker::LinkMode,