mirror of
https://git.tonybark.com/tonytins/swiftlyfox.git
synced 2026-02-10 16:24:48 -05:00
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:
parent
8f83d25989
commit
82077a9bb2
4 changed files with 49 additions and 21 deletions
|
|
@ -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!")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue