@@ -203,9 +203,9 @@ Execute a command in a vfox managed environment.
203203** Usage**
204204
205205``` shell
206- vfox exec < sdk-name> [@< version> ] < command> [args...]
206+ vfox exec < sdk-name> [@< version> ] -- < command> [args...]
207207
208- vfox x < sdk-name> [@< version> ] < command> [args...]
208+ vfox x < sdk-name> [@< version> ] -- < command> [args...]
209209```
210210
211211` sdk-name ` : SDK name
@@ -227,20 +227,15 @@ The `exec` command allows you to temporarily execute commands in a specified SDK
227227** Examples**
228228
229229``` shell
230- # Execute command with project-configured nodejs version
231- vfox exec nodejs node -v
232-
233230# Execute command with specified version
234- vfox exec nodejs@20.9.0 node -v
231+ vfox exec nodejs@20.9.0 -- node -v
235232
236233# Run build in maven environment
237- vfox exec maven@3.9.1 mvn clean install
234+ vfox exec maven@3.9.1 -- mvn clean install
238235
239236# Use alias x (short for exec)
240- vfox x java@21 java -version
237+ vfox x maven@3.9.1 -- mvn clean
241238
242- # Execute command with multiple arguments
243- vfox exec golang@1.21 go build -o myapp main.go
244239```
245240
246241::: tip IDE Integration
@@ -255,7 +250,7 @@ In VS Code, you can use the `exec` command to ensure your project uses the corre
255250 "label" : " Run with Node.js" ,
256251 "type" : " shell" ,
257252 "command" : " vfox" ,
258- "args" : [" x" , " nodejs@20" , " node" , " ${file}" ]
253+ "args" : [" x" , " nodejs@20" , " -- " , " node" , " ${file}" ]
259254 }
260255 ]
261256}
0 commit comments