Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Examples/count-lines/CountLines.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ArgumentParser
import Foundation

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

@Flag(help: "Include extra information in the output.")
var verbose = false
}

@available(macOS 12, *)
extension CountLines {
var fileHandle: FileHandle {
get throws {
guard let inputFile else {
Expand Down