This article helps to execute the CLI commands when the value passed in the parameter is having white spaces.
Instructions
To escape the white space in the group parameter while passing the input values, there are 2 cases to run the command successfully, based on the Operating System you are using (macOS and Windows).
Please find the below details based on the Operating System:
Execute the command on macOS as belowOn macOS:
While executing the command using the run parameters on macOS Operating System , sometimes it throws an error, that . That is because of the white spaces are included in the values. For example, if you have a group named my local group, so to execute the command by escaping the white space please use the escape characters .
In this article, a group name my local group used. It throws an error as shown below, if you pass the value as --group "my local group":
Parameter error: Unexpected argument: local
Hence, the command can be composed by escaping the white spaces as "\""my local group\"" as shown below:
Code Block | ||||
---|---|---|---|---|
| ||||
--action runFromCsv --file "spaces.csv" --common "--action addPermissions --permissions "viewspace" --group "\""my local group\"" |
On Windows:
In If the above command, if you pass the value CLI command is used as --group "my local group"without escaping the white spaces, it throws an error as shown below:
Parameter error: Unexpected argument: local
Execute To execute the command on Windows as below:To execute the command on Windows Operating System operating system by escaping the white space please , use the escape characters as shown below like this ""my local group""
An example is given below:
Code Block | ||||
---|---|---|---|---|
| ||||
--action runFromCsv --file "spaces.csv" --common "--action addPermissions --permissions "viewspace" --group ""my local group""" |
In the above command, if you pass the value as --group "my local group" it throws an error as shown below:
...