mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-14 03:20:49 +00:00
10 lines
281 B
Swift
10 lines
281 B
Swift
import Foundation
|
|
|
|
enum CLIArgParsingSupport {
|
|
static func nextValue(_ args: [String], index: inout Int) -> String? {
|
|
guard index + 1 < args.count else { return nil }
|
|
index += 1
|
|
return args[index].trimmingCharacters(in: .whitespacesAndNewlines)
|
|
}
|
|
}
|