Parsing Command-Line Arguments with ArgumentParser
The idea of importing frameworks is not new to you. You learned a little bit about the Foundation framework while working on the MonsterTown project in Chapter 15, Structs and Classes. As you continue your Swift development career, you will encounter lots of frameworks that can offer your program features for everything from modeling data to presenting user interfaces.
The next feature that you will add to wordlasso will use the ArgumentParser framework, an open-source framework developed by Apple. ArgumentParser does not ship as part of Xcode, like Foundation does, so you will need to download the framework and add it to your project before you can import it in a file and start using it. ...
Get Swift Programming: The Big Nerd Ranch Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.