summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2025-01-04 00:05:35 -0500
committerGitHub <[email protected]>2025-01-04 05:05:35 +0000
commit3d701943d17e9b34820ca2f26e1f63a5031584da (patch)
treea607cca29613a2c2d592b24f13145500be44a991 /src/cli.rs
parent8f1c8eea5f2d647ead5a2fcebd0f2fb98b6e976c (diff)
feat: allow for querying multiple substituters (#49)
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 41587c8..edfba5d 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -11,9 +11,14 @@ pub struct Cli {
#[arg(short, long, conflicts_with("installables"))]
pub configuration: Option<String>,
- /// URL of the substituter to check
- #[arg(short, long, default_value = "https://cache.nixos.org")]
- pub binary_cache: String,
+ /// URLs of the substituters to check (can be passed more than once)
+ #[arg(
+ alias = "binary-cache",
+ short,
+ long,
+ default_value = "https://cache.nixos.org"
+ )]
+ pub binary_caches: Vec<String>,
/// Flake reference of nixpkgs (or other package repository)
#[arg(short, long, default_value = "nixpkgs")]