Skip to content

Commit

Permalink
fix extra_args
Browse files Browse the repository at this point in the history
no allow_hyphens
  • Loading branch information
shivaraj-bh committed Oct 18, 2024
1 parent 02eca60 commit 6d34e29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/nix_rs/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct NixCmd {
pub extra_access_tokens: Vec<String>,

/// Arguments to pass verbatim to the Nix command
#[cfg_attr(feature = "clap", arg(long))]
#[cfg_attr(feature = "clap", arg(last = true))]
pub extra_args: Vec<String>,

/// Consider all previously downloaded files out-of-date.
Expand Down Expand Up @@ -219,6 +219,9 @@ impl NixCmd {
args.push("--extra-access-tokens".to_string());
args.push(self.extra_access_tokens.join(" "));
}

args.extend(self.extra_args.clone());

if self.refresh {
args.push("--refresh".to_string());
}
Expand Down

0 comments on commit 6d34e29

Please sign in to comment.