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
[CV勉強会@関東 World Model 読み会] Orbis: Overcoming Challenges of Long-Horizon Prediction in Driving World Models (Mousakhan+, NeurIPS 2025)
abemii
0
140
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
17k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
ランサムウェア対策としてのpnpm導入のススメ
ishikawa_satoru
0
180
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
CDKで始めるTypeScript開発のススメ
tsukuboshi
1
480
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
340
ブロックテーマ、WordPress でウェブサイトをつくるということ / 2026.02.07 Gifu WordPress Meetup
torounit
0
190
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
260
SREチームをどう作り、どう育てるか ― Findy横断SREのマネジメント
rvirus0817
0
310
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
620
What happened to RubyGems and what can we learn?
mikemcquaid
0
300
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
590
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
450
Art, The Web, and Tiny UX
lynnandtonic
304
21k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
The Curse of the Amulet
leimatthew05
1
8.7k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
730
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
190
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
320
Exploring anti-patterns in Rails
aemeredith
2
250
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