Skip to content

Commit

Permalink
Make --universal and --python-platform mutually exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jun 27, 2024
1 parent 9ac1a29 commit 303dc79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,11 @@ pub struct PipCompileArgs {
/// In universal mode, the current Python version (or user-provided `--python-version`) will be
/// treated as a lower bound. For example, `--universal --python-version 3.7` would produce a
/// universal resolution for Python 3.7 and later.
#[arg(long, overrides_with("no_universal"))]
#[arg(
long,
overrides_with("no_universal"),
conflicts_with("python_platform")
)]
pub universal: bool,

#[arg(long, overrides_with("universal"), hide = true)]
Expand Down

0 comments on commit 303dc79

Please sign in to comment.