parseArgs function initial commit