corrected command argument receipt during method call, treating cmd as arg
cmdline is an array, this is now explicitly mentioned in method prototype.