Accessing the command line arguments
You can access the command line arguments by using the method commandLine in the class EmSystemConfiguration. Recall that System is a global variable for the one instance of the class EmSystemConfiguration. To see the current command line, display the following code snippet in the Transcript or a Workspace:
System commandLine
This method returns an array of type String. The first argument is the name of the executable.
For example, assume you start the system with the following command line:
abt –iimage -mo10000000
Evaluating System commandLine returns the following array on Windows:
#('E:\abt.exe' '-iimage' '-mo10000000')
Evaluating System commandLine returns the following array on UNIX:
('/usr/local/VASTPlatform/10.0/bin/es' '-mcd' '-iimage' '-mo10000000')
Last modified date: 02/10/2021