diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index 729a93c09..2868c2280 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -2426,11 +2426,11 @@ pub struct AddArgs { #[arg(long, conflicts_with("dev"))] pub optional: Option, - #[arg(long, overrides_with = "no_editable", hide = true)] + /// Add the requirements as editable. + #[arg(long, overrides_with = "no_editable")] pub editable: bool, - /// Don't add the requirements as editables. - #[arg(long, overrides_with = "editable")] + #[arg(long, overrides_with = "editable", hide = true)] pub no_editable: bool, /// Add source requirements to `project.dependencies`, rather than `tool.uv.sources`. diff --git a/docs/reference/cli.md b/docs/reference/cli.md index f93621a70..bc94258ef 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -515,6 +515,8 @@ uv add [OPTIONS] >
--dev

Add the requirements as development dependencies

+
--editable

Add the requirements as editable

+
--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.

@@ -626,8 +628,6 @@ uv add [OPTIONS] >

Normally, configuration files are discovered in the current directory, parent directories, or user configuration directories.

-
--no-editable

Don’t add the requirements as editables

-
--no-index

Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via --find-links

--no-progress

Hide all progress outputs.