adding error handling to option parsing in build-unity