Add JSON alias for unsafe-any-match (#3820)

Closes https://github.com/astral-sh/uv/issues/3819.
This commit is contained in:
Charlie Marsh
2024-05-24 09:31:46 -04:00
committed by GitHub
parent c2a58cd303
commit 73f67089e1
@@ -220,6 +220,7 @@ pub enum IndexStrategy {
///
/// See: <https://peps.python.org/pep-0708/>
#[cfg_attr(feature = "clap", clap(alias = "unsafe-any-match"))]
#[serde(alias = "unsafe-any-match")]
UnsafeFirstMatch,
/// Search for every package name across all indexes, preferring the "best" version found. If a
/// package version is in multiple indexes, only look at the entry for the first index.