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:
committed by
GitHub
parent
2f553bfc51
commit
2abe56a357
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user