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
cdinto the project directory in Terminal.app. swift package updateswift buildswift run CommandLineTool --help
swift package generate-xcodeprojopen CommandLineTool.xcodeproj