I wrote a tutorial on Parsing your script's command line, which may be of some assistance.
In reply to Re: output on the command line by grinder in thread output on the command line by amoura