From 089b6d5538f0fc1cb7ea010a7b04d47db5fa3899 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 5 Aug 2025 19:17:30 +0100 Subject: [PATCH] Use "option" instead of "setting" in `pylock` warning (#15089) ## Summary We use "option" everywhere else (though I don't have a strong opinion on which is "better"). --- crates/uv/src/commands/pip/install.rs | 2 +- crates/uv/src/commands/pip/sync.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/src/commands/pip/install.rs b/crates/uv/src/commands/pip/install.rs index 86ae52273..c69c03e2e 100644 --- a/crates/uv/src/commands/pip/install.rs +++ b/crates/uv/src/commands/pip/install.rs @@ -147,7 +147,7 @@ pub(crate) async fn pip_install( if pylock.is_some() { if !preview.is_enabled(PreviewFeatures::PYLOCK) { warn_user!( - "The `--pylock` setting is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", + "The `--pylock` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", PreviewFeatures::PYLOCK ); } diff --git a/crates/uv/src/commands/pip/sync.rs b/crates/uv/src/commands/pip/sync.rs index 1293c120b..c4b41735c 100644 --- a/crates/uv/src/commands/pip/sync.rs +++ b/crates/uv/src/commands/pip/sync.rs @@ -140,7 +140,7 @@ pub(crate) async fn pip_sync( if pylock.is_some() { if !preview.is_enabled(PreviewFeatures::PYLOCK) { warn_user!( - "The `--pylock` setting is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", + "The `--pylock` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", PreviewFeatures::PYLOCK ); }