The EXECMDLINE comes from when you compile the kixscript it is the complete ARGV from the OS it includes the command name itself.

The Command line parse GetOption(), it's basically the same solution as what I've shown. That function returns the value for the option, without any processing of the value. Which I'd still have to do anyway, with the value after it was returned.

I choose to process the whole command line at once within the same function instead of putting the burden by overusing the program stack.
_________________________
---------------------------------------------------------------------------------------- NOTE: Regardless of content, this post shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of posts for such purpose. ----------------------------------------------------------------------------------------