Example command line tool written in swift.
This uses the SPMUtility
package that is part of the Swift Pakcage Manager to process command line arguments in a type safe way (unlike getopt).
- Download the repo and
cd
into the project directory in Terminal.app. swift package update
swift build
swift run CommandLineTool --help
swift package generate-xcodeproj
open CommandLineTool.xcodeproj