Example: lr.get_attrib_long
In the following example, lr.get_attrib_long retrieves the value of the loop parameter from the command line string
test1 -host sun2 -loop 4 -time 1.5
where test1 is the name of the executable and host, loop and time are command line options. lr.get_attrib_long assigns the value to a variable, iterations. This variable is incorporated into the script and sets how many loops to perform.
long iterations; long loop; iterations=lr.get_attrib_long("loop"); if (iterations==0){ lr.message("Illegal value"); }