Skip to end of banner
Go to start of banner

How to execute CLI command when white space is included in the value for group parameter

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

This article helps to execute the CLI commands when the value is 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 can run the command successfully, based on the Operating System you are using (macOS and Windows).

Please find the below details based in the Operating System:

Execute the command on macOS as below:

--action runFromCsv --file "spaces.csv" --common "--action addPermissions --permissions "viewspace" --group "\""my local group\""


In the above command, the group has white spaces, so if you pass the value as --group "my local group", it throws an error as shown below:

Parameter error: Unexpected argument: local


Execute the command on Windows as below:

--action runFromCsv --file "spaces.csv" --common "--action addPermissions --permissions "viewspace" --group ""my local group"""

In the above command, the group has white spaces, so if you pass the value as --group "my local group" it throws an error as shown below:

Parameter error: Unexpected argument: local


  • No labels