Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift_Argument_Parser_iPlayground_2020.pdf
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Dani Shuo
November 08, 2020
Technology
0
240
Swift_Argument_Parser_iPlayground_2020.pdf
Dani Shuo
November 08, 2020
Tweet
Share
Other Decks in Technology
See All in Technology
Security Diaries of an Open Source IAM
ahus1
0
190
Digitization部 紹介資料
sansan33
PRO
1
7k
Devinを導入したら予想外の人たちに好評だった
tomuro
0
850
EMからVPoEを経てCTOへ:マネジメントキャリアパスにおける葛藤と成長
kakehashi
PRO
6
650
DX Improvement at Scale
ntk1000
2
220
Claude Cowork Plugins を読む - Skills駆動型業務エージェント設計の実像と構造
knishioka
0
250
AI が Approve する開発フロー / How AI Reviewers Accelerate Our Development
zaimy
1
260
組織のSREを推進するためのPlatform EngineeringとEKS / Platform Engineering and EKS to drive SRE in your organization
chmikata
0
180
作るべきものと向き合う - ecspresso 8年間の開発史から学ぶ技術選定 / 技術選定con findy 2026
fujiwara3
7
2k
男(監査)はつらいよ - Policy as CodeからAIエージェントへ
ken5scal
5
720
EMからICへ、二周目人材としてAI全振りのプロダクト開発で見つけた武器
yug1224
3
190
クラウド時代における一時権限取得
krrrr38
1
150
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
110
How to Talk to Developers About Accessibility
jct
2
140
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
130
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Evolving SEO for Evolving Search Engines
ryanjones
0
150
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
450
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
230
Testing 201, or: Great Expectations
jmmastey
46
8.1k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
180
New Earth Scene 8
popppiees
1
1.7k
Facilitating Awesome Meetings
lara
57
6.8k
Transcript
Let’s build Command-Line Tools: Swift Argument Parser iPlayground 2020 By
Wang Shuo Yen
Wang Shuo Yen 王碩彥 40% iOS / 10% Flutter ☕
40% Medium: https://medium.com/@yusatrtru Github: https://github.com/danishuotw
Agenda •What’s Swift Argument Parser? •How to use it? •
Property wrapper • Customizing help • Validation • Subcommands •Demo
What’s Swift Argument Parser •New framework package in Swift •Allow
you to create command line tools
None
None
Property Wrapper
Customizing option and flag names
Customizing Help
Validation
How to make commands like git? •git add . •git
push <remote> - tags •git remote prune origin
Subcommands
Enumeration
Making Asynchronous Tasks Behave Synchronously
Demo
Swift Package Commands •swift package init --type executable •swift package
generate-xcodeproj
How to get Unix executable file •-> swift build -c
release •-> cd .build •-> cd release •-> find <project> exec file
Appendix: Reference • GitHub: Swift Argument Parser • swift.org: Announcing
ArgumentParser • The Ultimate Guide To Swift Executables • Writing Command Line Tools in Swift Using ArgumentParser
Metrics: Pods vs Carthage vs SPM https://www.innominds.com/blog/a-new-approach-to-managing-dependencies-in-ios-development-with-sw ift-package-manager
Thank you Wang Shuo Yen 王碩彥 Medium: https://medium.com/@yusatrtru