cmd: use hyphen instead of underscore (#3898)

This commit is contained in:
fatedier
2023-12-27 10:44:13 +08:00
committed by GitHub
parent 596262d5e0
commit d01f4a3ec1
7 changed files with 23 additions and 9 deletions

View File

@@ -254,6 +254,8 @@ func (s *TunnelServer) parseClientAndProxyConfigurer(_ *tcpipForward, extraPaylo
Short: "ssh v0@{address} [command]",
Run: func(*cobra.Command, []string) {},
}
cmd.SetGlobalNormalizationFunc(config.WordSepNormalizeFunc)
args := strings.Split(extraPayload, " ")
if len(args) < 1 {
return nil, nil, helpMessage, fmt.Errorf("invalid extra payload")