parseCommandArgs function

Parse Command-Line Arguments