diff options
author | Roman Melnikov | 2024-06-10 13:48:08 +0200 |
---|---|---|
committer | GitHub | 2024-06-10 13:48:08 +0200 |
commit | 9c3147639c233f80d333fe81f463b0a87fc49764 (patch) | |
tree | 4abe0d3155be7425c463a51658182242fe2d4c70 | |
parent | 5b5ebfa4978a1173593bdeaa64952073ce6a373c (diff) | |
parent | 20261c6428220b0a849e9745d682711144907b49 (diff) |
Merge pull request #277 from Anillc/patch-1
allow --ssh-opts starts with hyphen
-rw-r--r-- | nix/tests/default.nix | 5 | ||||
-rw-r--r-- | src/cli.rs | 2 |
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"; + }; } @@ -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)] |