Fix uv init --no-project alias (#6837)

This commit is contained in:
Zanie Blue 2024-08-29 17:40:19 -05:00 committed by GitHub
parent 2215448a8e
commit 97e6861b35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2172,13 +2172,11 @@ pub struct InitArgs {
#[arg(long)]
pub no_readme: bool,
/// Avoid discovering a workspace.
///
/// Instead, create a standalone project.
/// Avoid discovering a workspace and create a standalone project.
///
/// By default, uv searches for workspaces in the current directory or any
/// parent directory.
#[arg(long, alias = "no_project")]
#[arg(long, alias = "no-project")]
pub no_workspace: bool,
/// The Python interpreter to use to determine the minimum supported Python version.