Skip to content

Commit

Permalink
Mark --raw-sources as conflicting with sources-specific arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jul 23, 2024
1 parent aced05d commit 1c1818d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2010,10 +2010,18 @@ pub struct AddArgs {
#[arg(long, overrides_with = "editable")]
pub no_editable: bool,

/// Add source requirements to the `project.dependencies` section of the `pyproject.toml`.
/// Add source requirements to `project.dependencies`, rather than `tool.uv.sources`.
///
/// Without this flag uv will try to use `tool.uv.sources` for any sources.
#[arg(long)]
/// By default, uv will use the `tool.uv.sources` section to record source information for Git,
/// local, editable, and direct URL requirements.
#[arg(
long,
conflicts_with = "editable",
conflicts_with = "no_editable",
conflicts_with = "rev",
conflicts_with = "tag",
conflicts_with = "branch"
)]
pub raw_sources: bool,

/// Specific commit to use when adding from Git.
Expand Down

0 comments on commit 1c1818d

Please sign in to comment.