Parse the command line arguments for a deployer program The caller can set defaults for and this function. If the user requests a log level for RTT::Logger, then the logging level is set internally by this function. If the user requests help, then the function displays the help and returns a non-0 value. Any error causes the program usage to be displayed, and a non-0 return value.
- Parameters
-
argc | Number of command line arguments |
argv | Command line arguments |
siteFile | Name of the site CPF/XML file for the deployer to load up front |
scriptFiles | Names of the XML files for the deployer to load and run |
name | Name of the deployer task |
requireNameService | Whether to require the CORBA name service, or not |
minNumberCPU | The minimum number of CPUs required for deployment (0 == no minimum) |
vm | The variables map into which the options are parsed. |
otherOptions | Caller can pass in other options to check for. If NULL, then is ignored. |
- Returns
- 0 if successful, otherwise an error code