We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34490ab commit 2507430Copy full SHA for 2507430
cmd/connect.go
@@ -75,6 +75,17 @@ func runConnectCommand(cmd *cobra.Command, args []string) error {
75
}
76
77
78
+ // Expand connectArgs if any entry contains spaces (e.g., passed as a single string)
79
+ if len(connectArgs) > 0 {
80
+ var expandedArgs []string
81
+ for _, arg := range connectArgs {
82
+ // Split only if there are spaces and not already quoted
83
+ fields := strings.Fields(arg)
84
+ expandedArgs = append(expandedArgs, fields...)
85
+ }
86
+ config.Args = expandedArgs
87
88
+
89
// Create the appropriate adapter
90
adapterType := adapter.AdapterType(connectType)
91
serverAdapter, err := adapter.NewAdapter(adapterType, config)
0 commit comments