Skip to content

Commit

Permalink
Merge pull request #277 from Anillc/patch-1
Browse files Browse the repository at this point in the history
allow --ssh-opts starts with hyphen
  • Loading branch information
rvem committed Jun 10, 2024
2 parents 5b5ebfa + 20261c6 commit 9c31476
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nix/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,9 @@ in {
user = "deploy";
deployArgs = "-s .#profile -- --offline";
};
hyphen-ssh-opts-regression = mkTest {
name = "profile";
user = "deploy";
deployArgs = "-s .#profile --ssh-opts '-p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' -- --offline";
};
}
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub struct Opts {
#[clap(long)]
profile_user: Option<String>,
/// Override the SSH options used
#[clap(long)]
#[clap(long, allow_hyphen_values = true)]
ssh_opts: Option<String>,
/// Override if the connecting to the target node should be considered fast
#[clap(long)]
Expand Down

0 comments on commit 9c31476

Please sign in to comment.