changed getOpts with parseArgs