mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-01 20:31:12 +00:00
Add --no-project alias for uv python pin --no-workspace (#6514)
This matches the other interfaces and seems like an oversight.
This commit is contained in:
parent
57f833c302
commit
4cdca06db2
6 changed files with 38 additions and 17 deletions
|
|
@ -3061,13 +3061,13 @@ pub struct PythonPinArgs {
|
|||
#[arg(long, overrides_with("no_resolved"), hide = true)]
|
||||
pub no_resolved: bool,
|
||||
|
||||
/// Avoid validating the Python pin is compatible with the workspace.
|
||||
/// Avoid validating the Python pin is compatible with the project or workspace.
|
||||
///
|
||||
/// By default, a workspace is discovered in the current directory or any parent
|
||||
/// directory. If a workspace is found, the Python pin is validated against
|
||||
/// the workspace's `requires-python` constraint.
|
||||
#[arg(long)]
|
||||
pub no_workspace: bool,
|
||||
/// By default, a project or workspace is discovered in the current directory or any parent
|
||||
/// directory. If a workspace is found, the Python pin is validated against the workspace's
|
||||
/// `requires-python` constraint.
|
||||
#[arg(long, alias = "no-workspace")]
|
||||
pub no_project: bool,
|
||||
}
|
||||
|
||||
#[derive(Args)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue