Skip to content

Commit d5eff7f

Browse files
authored
Merge pull request #341 from sjagoe/fix-targets-extra-args
Fix targets and extra build args
2 parents 9c870f6 + c8b2cbe commit d5eff7f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct Opts {
2828
target: Option<String>,
2929

3030
/// A list of flakes to deploy alternatively
31-
#[arg(long, group = "deploy")]
31+
#[arg(long, group = "deploy", num_args = 1..)]
3232
targets: Option<Vec<String>>,
3333
/// Treat targets as files instead of flakes
3434
#[clap(short, long)]
@@ -40,6 +40,7 @@ pub struct Opts {
4040
#[arg(short, long)]
4141
interactive: bool,
4242
/// Extra arguments to be passed to nix build
43+
#[arg(last = true)]
4344
extra_build_args: Vec<String>,
4445

4546
/// Print debug logs to output

0 commit comments

Comments
 (0)