For ages I've been reusing the same old code to parse command line parameters. So I figured I'd change it slightly and make it into a UDF. The result is pretty good IMHO. To make it look nice, the main function is called 'CmdLine'. Usage is almost $_GET: CmdLine("arg") returns the value of "arg" What it does is put all the command line arguments in a global array ($CmdLine_Cache) in the form: [*][0] => Argument name, [*][1] => Value. The array is populated on either the first call to Cmd