Added ArgumentParser to main project

- At Swift book's Functions and Closure section in Playgrounds (next up Objects and Classes)
This commit is contained in:
Tony Bark 2025-11-12 18:52:42 -05:00
parent 8f83d25989
commit 82077a9bb2
4 changed files with 49 additions and 21 deletions

View file

@ -1,11 +1,10 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
import ArgumentParser
@main
struct swiftyfox {
struct swiftyfox: ParsableCommand {
@Flag var verbose = false
static func main() {
print("Hello, world!")
}
}