fastlane/swift/ArgumentProcessor.swift in fastlane-2.98.0 vs fastlane/swift/ArgumentProcessor.swift in fastlane-2.99.0

- old
+ new

@@ -1,11 +1,10 @@ // // ArgumentProcessor.swift // FastlaneRunner // // Created by Joshua Liebowitz on 9/28/17. -// Copyright © 2017 Joshua Liebowitz. All rights reserved. // // // ** NOTE ** // This file is provided by fastlane and WILL be overwritten in future updates @@ -17,10 +16,11 @@ struct ArgumentProcessor { let args: [RunnerArgument] let currentLane: String let commandTimeout: Int + let port: UInt32 init(args: [String]) { // Dump the first arg which is the program name let fastlaneArgs = stride(from: 1, to: args.count - 1, by: 2).map { RunnerArgument(name: args[$0], value: args[$0+1]) @@ -32,9 +32,11 @@ } let potentialLogMode = fastlaneArgsMinusLanes.filter { arg in return arg.name.lowercased() == "logmode" } + + port = UInt32(fastlaneArgsMinusLanes.first(where: { $0.name == "swiftServerPort" })?.value ?? "") ?? 2000 // Configure logMode since we might need to use it before we finish parsing if let logModeArg = potentialLogMode.first { let logModeString = logModeArg.value Logger.logMode = Logger.LogMode(logMode: logModeString)