remove trailing comma at the end of optionDeclarations array