Skip to content

Commit 5bb54b9

Browse files
authored
Specify availability for remainder of platforms (#741)
1 parent bdb3b27 commit 5bb54b9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Examples/count-lines/CountLines.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ArgumentParser
1313
import Foundation
1414

1515
@main
16-
@available(macOS 12, *)
16+
@available(macOS 12, iOS 15, visionOS 1, tvOS 15, watchOS 8, *)
1717
struct CountLines: AsyncParsableCommand {
1818
@Argument(
1919
help: "A file to count lines in. If omitted, counts the lines of stdin.",
@@ -25,10 +25,7 @@ struct CountLines: AsyncParsableCommand {
2525

2626
@Flag(help: "Include extra information in the output.")
2727
var verbose = false
28-
}
2928

30-
@available(macOS 12, *)
31-
extension CountLines {
3229
var fileHandle: FileHandle {
3330
get throws {
3431
guard let inputFile else {

0 commit comments

Comments
 (0)