summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
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")]