Clarify --project flag help text to indicate project discovery (#16965)

Clarify `--project` flag help text to indicate project discovery

  Update the help text for `--project` from "Run the command within
  the given project directory" to "Discover a project in the given
  directory" to better reflect its actual behavior.

  The `--project` flag affects file discovery (pyproject.toml, uv.toml,
  etc.) but does not change the working directory. Users should use
  `--directory` for changing the working directory.

  Fixes #16718
This commit is contained in:
Oshadha Gunawardena
2025-12-03 23:45:36 +05:30
committed by GitHub
parent 2f553bfc51
commit 2abe56a357
3 changed files with 59 additions and 59 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ pub struct GlobalArgs {
#[arg(global = true, long, env = EnvVars::UV_WORKING_DIR)]
pub directory: Option<PathBuf>,
/// Run the command within the given project directory.
/// Discover a project in the given directory.
///
/// All `pyproject.toml`, `uv.toml`, and `.python-version` files will be discovered by walking
/// up the directory tree from the project root, as will the project's virtual environment