Split prepareArgs into parseArgs