diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index caccdf6e9..1a73e6347 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -2798,7 +2798,7 @@ pub struct RunArgs { #[arg(long)] pub with: Vec, - /// Run with the given packages installed as editables. + /// Run with the given packages installed in editable mode. /// /// When used in a project, these dependencies will be layered on top of the project environment /// in a separate, ephemeral environment. These dependencies are allowed to conflict with those @@ -3901,7 +3901,7 @@ pub struct ToolRunArgs { #[arg(long)] pub with: Vec, - /// Run with the given packages installed as editables + /// Run with the given packages installed in editable mode /// /// When used in a project, these dependencies will be layered on top of the uv tool's /// environment in a separate, ephemeral environment. These dependencies are allowed to conflict @@ -3955,9 +3955,6 @@ pub struct ToolInstallArgs { /// The package to install commands from. pub package: String, - #[arg(short, long)] - pub editable: bool, - /// The package to install commands from. /// /// This option is provided for parity with `uv tool run`, but is redundant with `package`. @@ -3968,14 +3965,19 @@ pub struct ToolInstallArgs { #[arg(long)] pub with: Vec, - /// Include the given packages as editables. - #[arg(long)] - pub with_editable: Vec, - /// Run all requirements listed in the given `requirements.txt` files. #[arg(long, value_delimiter = ',', value_parser = parse_maybe_file_path)] pub with_requirements: Vec>, + /// Install the target package in editable mode, such that changes in the package's source + /// directory are reflected without reinstallation. + #[arg(short, long)] + pub editable: bool, + + /// Include the given packages in editable mode. + #[arg(long)] + pub with_editable: Vec, + /// Constrain versions using the given requirements files. /// /// Constraints files are `requirements.txt`-like files that only control the _version_ of a diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 7ea836ed8..18f2fb04b 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -485,7 +485,7 @@ uv run [OPTIONS] [COMMAND]

When used in a project, these dependencies will be layered on top of the project environment in a separate, ephemeral environment. These dependencies are allowed to conflict with those specified by the project.

-
--with-editable with-editable

Run with the given packages installed as editables.

+
--with-editable with-editable

Run with the given packages installed in editable mode.

When used in a project, these dependencies will be layered on top of the project environment in a separate, ephemeral environment. These dependencies are allowed to conflict with those specified by the project.

@@ -3381,7 +3381,7 @@ uv tool run [OPTIONS] [COMMAND]
--with with

Run with the given packages installed

-
--with-editable with-editable

Run with the given packages installed as editables

+
--with-editable with-editable

Run with the given packages installed in editable mode

When used in a project, these dependencies will be layered on top of the uv tool’s environment in a separate, ephemeral environment. These dependencies are allowed to conflict with those specified.

@@ -3474,7 +3474,9 @@ uv tool install [OPTIONS]

See --project to only change the project root directory.

-
--editable, -e
--exclude-newer exclude-newer

Limit candidate packages to those that were uploaded prior to the given date.

+
--editable, -e

Install the target package in editable mode, such that changes in the package’s source directory are reflected without reinstallation

+ +
--exclude-newer exclude-newer

Limit candidate packages to those that were uploaded prior to the given date.

Accepts both RFC 3339 timestamps (e.g., 2006-12-02T02:07:43Z) and local dates in the same format (e.g., 2006-12-02) in your system’s configured time zone.

@@ -3715,7 +3717,7 @@ uv tool install [OPTIONS]
--with with

Include the following extra requirements

-
--with-editable with-editable

Include the given packages as editables

+
--with-editable with-editable

Include the given packages in editable mode

--with-requirements with-requirements

Run all requirements listed in the given requirements.txt files