Merge pull request #277 from Anillc/patch-1

allow --ssh-opts starts with hyphen
This commit is contained in:
Roman Melnikov 2024-06-10 13:48:08 +02:00 committed by GitHub
commit 9c3147639c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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";
};
}

View File

@ -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)]