This should be an option. You are looking for addOption()