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
AIと融ける人間の冒険
pujisi
0
110
業務の煩悩を祓うAI活用術108選 / AI 108 Usages
smartbank
9
19k
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
260
ハッカソンから社内プロダクトへ AIエージェント ko☆shi 開発で学んだ4つの重要要素
leveragestech
0
550
Bedrock AgentCore Evaluationsで学ぶLLM as a judge入門
shichijoyuhi
2
320
Node vs Deno vs Bun 〜推しランタイムを見つけよう〜
kamekyame
1
200
202512_AIoT.pdf
iotcomjpadmin
0
180
「リリースファースト」の実感を届けるには 〜停滞するチームに変化を起こすアプローチ〜 #RSGT2026
kintotechdev
0
540
製造業から学んだ「本質を守り現場に合わせるアジャイル実践」
kamitokusari
0
280
投資戦略を量産せよ 2 - マケデコセミナー(2025/12/26)
gamella
1
610
歴史から学ぶ、Goのメモリ管理基礎
logica0419
10
2k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
11
390k
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
180
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
590
Marketing to machines
jonoalderson
1
4.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Typedesign – Prime Four
hannesfritz
42
2.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
36
Making the Leap to Tech Lead
cromwellryan
135
9.7k
How to Think Like a Performance Engineer
csswizardry
28
2.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