From 8605259f3ddf98c8c14fce44e17019424e7192a3 Mon Sep 17 00:00:00 2001 From: Max Friedrich Date: Sat, 12 Oct 2024 14:53:19 +0200 Subject: [PATCH] Fix typos in --no-... option names in no-op warnings (#8143) ## Summary When trying out standalone scripts I noticed a warning that said `--no_readme` is a no-op when I provided `--no-readme`. I searched for this "--\w+_" pattern in the codebase and found a similar typo in warnings in other places, so I fixed them here. ## Test Plan no plan, since these commands are mainly for interactive use I would assume nobody parses out warnings about unnecessary options? --- crates/uv/src/commands/project/add.rs | 2 +- crates/uv/src/commands/project/init.rs | 4 ++-- crates/uv/src/commands/project/remove.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/uv/src/commands/project/add.rs b/crates/uv/src/commands/project/add.rs index 43f57d48d..4037c6505 100644 --- a/crates/uv/src/commands/project/add.rs +++ b/crates/uv/src/commands/project/add.rs @@ -115,7 +115,7 @@ pub(crate) async fn add( } if no_sync { warn_user_once!( - "`--no_sync` is a no-op for Python scripts with inline metadata, which always run in isolation" + "`--no-sync` is a no-op for Python scripts with inline metadata, which always run in isolation" ); } diff --git a/crates/uv/src/commands/project/init.rs b/crates/uv/src/commands/project/init.rs index bdda54975..3f933a3d0 100644 --- a/crates/uv/src/commands/project/init.rs +++ b/crates/uv/src/commands/project/init.rs @@ -176,10 +176,10 @@ async fn init_script( native_tls: bool, ) -> Result<()> { if no_workspace { - warn_user_once!("`--no_workspace` is a no-op for Python scripts, which are standalone"); + warn_user_once!("`--no-workspace` is a no-op for Python scripts, which are standalone"); } if no_readme { - warn_user_once!("`--no_readme` is a no-op for Python scripts, which are standalone"); + warn_user_once!("`--no-readme` is a no-op for Python scripts, which are standalone"); } if author_from.is_some() { warn_user_once!("`--author-from` is a no-op for Python scripts, which are standalone"); diff --git a/crates/uv/src/commands/project/remove.rs b/crates/uv/src/commands/project/remove.rs index fd0155c77..57685973b 100644 --- a/crates/uv/src/commands/project/remove.rs +++ b/crates/uv/src/commands/project/remove.rs @@ -61,7 +61,7 @@ pub(crate) async fn remove( } if no_sync { warn_user_once!( - "`--no_sync` is a no-op for Python scripts with inline metadata, which always run in isolation" + "`--no-sync` is a no-op for Python scripts with inline metadata, which always run in isolation" ); } Target::Script(script)