chore(cli/configssh): add comment about wait and skip proxy (#7917)

This commit is contained in:
Mathias Fredriksson
2023-06-08 14:23:03 +00:00
committed by GitHub
parent fa91e11105
commit 03034dc508
+2
View File
@@ -219,6 +219,8 @@ func (r *RootCmd) configSSH() *clibase.Cmd {
),
Handler: func(inv *clibase.Invocation) error {
if sshConfigOpts.waitEnum != "auto" && skipProxyCommand {
// The wait option is applied to the ProxyCommand. If the user
// specifies skip-proxy-command, then wait cannot be applied.
return xerrors.Errorf("cannot specify both --skip-proxy-command and --wait")
}