Why does visual studio share arguments with spaces?

I tried passing 2 arguments in a command-line argument in my project as follows: argument1, argument2, but later realized that it should be like this: argument1 argument2

Why does visual studio share arguments with spaces not commas? Logically, the arguments are passed to a function that separates their arguments with commas fct (a, b). I did not know that Visual Studio separated arguments with spaces, not commas. Why is this?

+4
source share
2 answers

This is not only a visual studio. Command line input always takes its argument, limited to spaces. This is exactly how it works.

+7
source

It has nothing to do with Visual Studio. These are just the command line arguments, as indicated, for all executables, however they were created.

As function parameters are represented and shared in the language used to build the executable, they are completely orthogonal to this.

+4
source

Source: https://habr.com/ru/post/1436202/


All Articles