aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/tests/default.nix5
-rw-r--r--src/cli.rs2
2 files changed, 6 insertions, 1 deletions
diff --git a/nix/tests/default.nix b/nix/tests/default.nix
index b38e99d..7fe8628 100644
--- a/nix/tests/default.nix
+++ b/nix/tests/default.nix
@@ -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";
+ };
}
diff --git a/src/cli.rs b/src/cli.rs
index 47dc936..88fc7e5 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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)]