Skip to content

Commit 9c31476

Browse files
authored
Merge pull request #277 from Anillc/patch-1
allow --ssh-opts starts with hyphen
2 parents 5b5ebfa + 20261c6 commit 9c31476

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

nix/tests/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,9 @@ in {
131131
user = "deploy";
132132
deployArgs = "-s .#profile -- --offline";
133133
};
134+
hyphen-ssh-opts-regression = mkTest {
135+
name = "profile";
136+
user = "deploy";
137+
deployArgs = "-s .#profile --ssh-opts '-p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' -- --offline";
138+
};
134139
}

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct Opts {
6868
#[clap(long)]
6969
profile_user: Option<String>,
7070
/// Override the SSH options used
71-
#[clap(long)]
71+
#[clap(long, allow_hyphen_values = true)]
7272
ssh_opts: Option<String>,
7373
/// Override if the connecting to the target node should be considered fast
7474
#[clap(long)]

0 commit comments

Comments
 (0)