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
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
ZOZOマッチのアーキテクチャと技術構成
zozotech
PRO
2
980
カミナシ社の『ID管理基盤』製品内製 - その意思決定背景と2年間の進化 #AWSUnicornDay / Kaminashi ID - The Big Whys
kaminashi
3
710
DDD集約とサービスコンテキスト境界との関係性
pandayumi
2
160
制約理論(ToC)入門
recruitengineers
PRO
8
3.6k
実践アプリケーション設計 ③ドメイン駆動設計
recruitengineers
PRO
13
4k
Product Management Conference -AI時代に進化するPdM-
kojima111
0
270
microCMS 最新リリース情報(microCMS Meetup 2025)
microcms
0
390
進捗
ydah
2
220
モダンフロントエンド 開発研修
recruitengineers
PRO
9
6k
VPC Latticeのサービスエンドポイント機能を使用した複数VPCアクセス
duelist2020jp
0
350
【 LLMエンジニアがヒューマノイド開発に挑んでみた 】 - 第104回 Machine Learning 15minutes! Hybrid
soneo1127
0
230
プロダクトの成長に合わせたアーキテクチャの段階的進化と成長痛、そして、ユニットエコノミクスの最適化
kakehashi
PRO
1
110
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
500
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
How to train your dragon (web standard)
notwaldorf
96
6.2k
Music & Morning Musume
bryan
46
6.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Typedesign – Prime Four
hannesfritz
42
2.8k
A designer walks into a library…
pauljervisheath
207
24k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
790
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
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