From 0dea727b69224b6aef4ce54d3c7c0fd1ba7981ef Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Mon, 30 Apr 2018 11:56:34 +0930 Subject: [PATCH] Fix calls to deprecated String.substring() method --- swift-client-api/client_util.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swift-client-api/client_util.swift b/swift-client-api/client_util.swift index 0706fc67..b75782a7 100644 --- a/swift-client-api/client_util.swift +++ b/swift-client-api/client_util.swift @@ -70,8 +70,8 @@ func parseOptions(_ args: inout [String], _ options: [(String, (String) -> Void) var param : String? var optrange : Range if let eq = arg.range(of: "=") { - opt = arg.substring(to: eq.lowerBound) - param = arg.substring(from: eq.upperBound) + opt = String(arg[..