File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Sources/Testing/ABI/EntryPoints Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -353,14 +353,16 @@ extension __CommandLineArguments_v0: Codable {
353
353
}
354
354
355
355
extension RandomAccessCollection < String > {
356
- /// Get the value of the command line argument named at the given index .
356
+ /// Get the value of the command line argument with the given name .
357
357
///
358
358
/// - Parameters:
359
359
/// - key: The key or name of the argument, e.g. `"--attachments-path"`.
360
- /// - index: Optionally, the index where `key` should be found.
360
+ /// - index: The index where `key` should be found, or `nil` to search the
361
+ /// entire collection.
361
362
///
362
- /// - Returns: The value of the argument named by `key`. If no value is
363
- /// available, returns `nil`.
363
+ /// - Returns: The value of the argument named by `key` at `index`. If no
364
+ /// value is available, or if `index` is not `nil` and the argument at
365
+ /// `index` is not named `key`, returns `nil`.
364
366
///
365
367
/// This function handles arguments of the form `--key value` and
366
368
/// `--key=value`. Other argument syntaxes are not supported.
You can’t perform that action at this time.
0 commit comments