Repository: astral-sh/uv
File: crates/uv-cli/src/lib.rs (Rust)

Code before:
    #[arg(long, env = EnvVars::UV_PUBLISH_CHECK_URL)]
    pub check_url: Option<IndexUrl>,

    #[arg(long, hide = true)]
    pub skip_existing: bool,

    /// Perform a dry run without uploading files.
    ///
    /// When enabled, the command will check for existing files if `--check-url` is provided,
    /// and will perform validation against the index if supported, but will not upload any files.
    #[arg(long)]
    pub dry_run: bool,
}

#[derive(Args)]
pub struct WorkspaceNamespace {
    #[command(subcommand)]
    pub command: WorkspaceCommand,
}

#[derive(Subcommand)]
pub enum WorkspaceCommand {
    /// Display package metadata.
    #[command(hide = true)]
    Metadata(MetadataArgs),
    /// Display path to workspace root or member packages.
    #[command(hide = true)]
    Dir(WorkspaceDirArgs),
}

#[derive(Args, Debug)]
pub struct MetadataArgs;

#[derive(Args, Debug)]
pub struct WorkspaceDirArgs {
    #[arg(long)]
    pub package: Option<PackageName>,
}

/// See [PEP 517](https://peps.python.org/pep-0517/) and
/// [PEP 660](https://peps.python.org/pep-0660/) for specifications of the parameters.
#[derive(Subcommand)]
pub enum BuildBackendCommand {
    /// PEP 517 hook `build_sdist`.
    BuildSdist { sdist_directory: PathBuf },
    /// PEP 517 hook `build_wheel`.
    BuildWheel {
        wheel_directory: PathBuf,
        #[arg(long)]
        metadata_directory: Option<PathBuf>,
    },

Review comment (suggestion):
I'd say a bit more 

```suggestion
    /// Display the path of a workspace member.
    ///
    /// By default, the path to the workspace root directory is displayed.
    /// The `--package` option can be used to display the path to a workspace member instead.
    ///
    /// If used outside of a workspace, i.e., if a `pyproject.toml` cannot be found, uv will exit with an error.
```

Code after:
    #[arg(long, env = EnvVars::UV_PUBLISH_CHECK_URL)]
    pub check_url: Option<IndexUrl>,

    #[arg(long, hide = true)]
    pub skip_existing: bool,

    /// Perform a dry run without uploading files.
    ///
    /// When enabled, the command will check for existing files if `--check-url` is provided,
    /// and will perform validation against the index if supported, but will not upload any files.
    #[arg(long)]
    pub dry_run: bool,
}

#[derive(Args)]
pub struct WorkspaceNamespace {
    #[command(subcommand)]
    pub command: WorkspaceCommand,
}

#[derive(Subcommand)]
pub enum WorkspaceCommand {
    /// Display package metadata.
    #[command(hide = true)]
    Metadata(MetadataArgs),
    /// Display the path of a workspace member.
    ///
    /// By default, the path to the workspace root directory is displayed.
    /// The `--package` option can be used to display the path to a workspace member instead.
    ///
    /// If used outside of a workspace, i.e., if a `pyproject.toml` cannot be found, uv will exit with an error.
    #[command(hide = true)]
    Dir(WorkspaceDirArgs),
}

#[derive(Args, Debug)]
pub struct MetadataArgs;

#[derive(Args, Debug)]
pub struct WorkspaceDirArgs {
    /// Display the path to a specific package in the workspace.
    #[arg(long)]
    pub package: Option<PackageName>,
}

/// See [PEP 517](https://peps.python.org/pep-0517/) and
/// [PEP 660](https://peps.python.org/pep-0660/) for specifications of the parameters.
#[derive(Subcommand)]
pub enum BuildBackendCommand {
    /// PEP 517 hook `build_sdist`.
    BuildSdist { sdist_directory: PathBuf },