Replace deprecated optimist library with yargs and replace tabs with spaces