     if let params = Arguments.parseHostPort(val) {
         networkMasterParams = params
     } else {
-        print("Argument --networkMaster must be of the form \"host:port\"")
-        exit(-1)
+        configError("Argument --networkMaster must be of the form \"host:port\"")
     }
 }
 

        --collectRuntimeTypes
        """
    )
    exit(-1)
}

//

    exit(0)
}

// Helper function that prints out an error message, then exits the process.
func configError(_ msg: String) -> Never {
    print(msg)
    exit(-1)
}

let jsShellPath = args[0]

if !FileManager.default.fileExists(atPath: jsShellPath) {
    configError("Invalid JS shell path \"\(jsShellPath)\", file does not exist")
}

var profile: Profile! = nil
