From 3d701943d17e9b34820ca2f26e1f63a5031584da Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 4 Jan 2025 00:05:35 -0500 Subject: feat: allow for querying multiple substituters (#49) --- src/cli.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/cli.rs') 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, - /// 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, /// Flake reference of nixpkgs (or other package repository) #[arg(short, long, default_value = "nixpkgs")] -- cgit v1.2.3